Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
AE
Sith
Commits
5a7b743c
Commit
5a7b743c
authored
Apr 06, 2017
by
Sli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Try fix right issues in counter admin
parent
7c069bb3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
counter/views.py
counter/views.py
+1
-2
No files found.
counter/views.py
View file @
5a7b743c
...
...
@@ -74,11 +74,10 @@ class CounterAdminMixin(View):
def
dispatch
(
self
,
request
,
*
args
,
**
kwargs
):
res
=
super
(
CounterAdminMixin
,
self
).
dispatch
(
request
,
*
args
,
**
kwargs
)
if
not
(
request
.
user
.
is_root
or
self
.
_test_group
(
request
.
user
)
or
self
.
_test_club
(
request
.
user
)):
raise
PermissionDenied
return
res
return
super
(
CounterAdminMixin
,
self
).
dispatch
(
request
,
*
args
,
**
kwargs
)
class
GetUserForm
(
forms
.
Form
):
"""
...
...
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