mirror of
https://gitlab.com/animath/si/plateforme.git
synced 2025-06-23 16:36:37 +02:00
Drop a lot of Corres2math content
This commit is contained in:
@ -8,8 +8,6 @@ from haystack.generic_views import SearchView
|
||||
|
||||
class AdminMixin(LoginRequiredMixin):
|
||||
def dispatch(self, request, *args, **kwargs):
|
||||
if not request.user.is_authenticated:
|
||||
return self.handle_no_permission()
|
||||
if not request.user.registration.is_admin:
|
||||
raise PermissionDenied
|
||||
return super().dispatch(request, *args, **kwargs)
|
||||
|
Reference in New Issue
Block a user