mirror of https://github.com/jumpserver/jumpserver
Update api.py
parent
72517a2c72
commit
fd3df81a64
|
@ -25,7 +25,7 @@ class AssetPermissionViewSet(viewsets.ModelViewSet):
|
|||
queryset = AssetPermission.objects.all()
|
||||
serializer_class = serializers.AssetPermissionCreateUpdateSerializer
|
||||
permission_classes = (IsSuperUser,)
|
||||
pagination_class = LimitOffsetPagination
|
||||
pagination_class = LimitOffsetPagination
|
||||
|
||||
def get_serializer_class(self):
|
||||
if self.action in ("list", 'retrieve'):
|
||||
|
|
Loading…
Reference in New Issue