mirror of
https://github.com/django-helpdesk/django-helpdesk.git
synced 2025-01-21 21:38:37 +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