|
|
|
@ -22,7 +22,6 @@ from perms import serializers
|
|
|
|
|
logger = get_logger(__name__) |
|
|
|
|
|
|
|
|
|
__all__ = [ |
|
|
|
|
'RefreshAssetPermissionCacheApi', |
|
|
|
|
'UserGrantedAssetSystemUsersForAdminApi', |
|
|
|
|
'ValidateUserAssetPermissionApi', |
|
|
|
|
'GetUserAssetPermissionActionsApi', |
|
|
|
@ -97,12 +96,6 @@ class ValidateUserAssetPermissionApi(APIView):
|
|
|
|
|
return Response(data, status=status_code) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# TODO 删除 |
|
|
|
|
class RefreshAssetPermissionCacheApi(RetrieveAPIView): |
|
|
|
|
def retrieve(self, request, *args, **kwargs): |
|
|
|
|
return Response({'msg': True}, status=200) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class UserGrantedAssetSystemUsersForAdminApi(ListAPIView): |
|
|
|
|
serializer_class = serializers.AssetSystemUserSerializer |
|
|
|
|
only_fields = serializers.AssetSystemUserSerializer.Meta.only_fields |
|
|
|
|