mirror of
https://gitea.mueller.network/extern/django-helpdesk.git
synced 2024-11-22 07:53:19 +01:00
added permission classes
This commit is contained in:
parent
a50ef874cd
commit
67949e83f9
@ -31,3 +31,4 @@ class TicketViewSet(viewsets.ModelViewSet):
|
||||
class CreateUserView(CreateModelMixin, GenericViewSet):
|
||||
queryset = get_user_model().objects.all()
|
||||
serializer_class = UserSerializer
|
||||
permission_classes = [IsAdminUser]
|
||||
|
Loading…
Reference in New Issue
Block a user