mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-22 06:03:20 +00:00
Try fix right issues in counter admin
This commit is contained in:
parent
7c069bb3ee
commit
5a7b743c83
@ -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):
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user