From 67949e83f9f6de745bff2a51ba8e6c0cae7b4ced Mon Sep 17 00:00:00 2001 From: Daniele Scasciafratte Date: Wed, 4 May 2022 18:51:02 +0200 Subject: [PATCH] added permission classes --- helpdesk/views/api.py | 1 + 1 file changed, 1 insertion(+) diff --git a/helpdesk/views/api.py b/helpdesk/views/api.py index b4ba189c..266f821f 100644 --- a/helpdesk/views/api.py +++ b/helpdesk/views/api.py @@ -31,3 +31,4 @@ class TicketViewSet(viewsets.ModelViewSet): class CreateUserView(CreateModelMixin, GenericViewSet): queryset = get_user_model().objects.all() serializer_class = UserSerializer + permission_classes = [IsAdminUser]