Commit 6a88fd2d authored by ibuler's avatar ibuler

[Update] 修改api权限

parent aa8bece7
......@@ -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')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment