Browse Source

fix: 删除资产授权缓存接口

pull/7855/head
feng626 3 years ago committed by 老广
parent
commit
e1a238b778
  1. 7
      apps/perms/api/asset/user_permission/common.py
  2. 2
      apps/perms/urls/asset_permission.py

7
apps/perms/api/asset/user_permission/common.py

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

2
apps/perms/urls/asset_permission.py

@ -100,8 +100,6 @@ permission_urlpatterns = [
path('user/validate/', api.ValidateUserAssetPermissionApi.as_view(), name='validate-user-asset-permission'),
path('user/actions/', api.GetUserAssetPermissionActionsApi.as_view(), name='get-user-asset-permission-actions'),
# 刷新缓存
path('cache/refresh/', api.RefreshAssetPermissionCacheApi.as_view(), name='refresh-asset-permission-cache'),
]
asset_permission_urlpatterns = [

Loading…
Cancel
Save