Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Sith
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
59
Issues
59
List
Boards
Labels
Service Desk
Milestones
Merge Requests
9
Merge Requests
9
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
AE
Sith
Commits
52a09139
Commit
52a09139
authored
Jan 03, 2017
by
Skia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tiny fix in the counter
parent
b347b874
Pipeline
#672
passed with stage
in 3 minutes and 1 second
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
counter/models.py
counter/models.py
+1
-1
No files found.
counter/models.py
View file @
52a09139
...
...
@@ -163,7 +163,7 @@ class Counter(models.Model):
def
can_be_viewed_by
(
self
,
user
):
if
self
.
type
==
"BAR"
or
self
.
type
==
"EBOUTIC"
:
return
True
return
user
.
is_in_group
(
settings
.
SITH_MAIN_BOARD_GROUP
)
or
user
in
self
.
sellers
return
user
.
is_in_group
(
settings
.
SITH_MAIN_BOARD_GROUP
)
or
user
in
self
.
sellers
.
all
()
def
gen_token
(
self
):
"""Generate a new token for this counter"""
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment