Try fix right issues in counter admin

This commit is contained in:
Antoine Bartuccio 2017-04-06 23:29:43 +02:00
parent 7c069bb3ee
commit 5a7b743c83

View File

@ -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):
"""