[Update] 修改api权限

pull/1171/head
ibuler 2018-04-04 08:47:02 +08:00
parent aa8bece724
commit 6a88fd2d60
1 changed files with 1 additions and 1 deletions

View File

@ -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')