mirror of https://github.com/jumpserver/jumpserver
[Update] 修改api权限
parent
aa8bece724
commit
6a88fd2d60
|
@ -28,7 +28,7 @@ class UserViewSet(IDInFilterMixin, BulkModelViewSet):
|
|||
queryset = User.objects.exclude(role="App")
|
||||
# queryset = User.objects.all().exclude(role="App").order_by("date_joined")
|
||||
serializer_class = UserSerializer
|
||||
permission_classes = (IsSuperUser, IsAuthenticated)
|
||||
permission_classes = (IsSuperUserOrAppUser, IsAuthenticated)
|
||||
filter_fields = ('username', 'email', 'name', 'id')
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue