fix: 修复资产详情授权用户tab页的权限位

This commit is contained in:
Jiangjie.Bai
2022-03-17 17:22:57 +08:00
committed by Jiangjie.Bai
parent 3ed7477057
commit a8cee26874

View File

@@ -206,7 +206,7 @@ class AssetGatewayListApi(generics.ListAPIView):
class BaseAssetPermUserOrUserGroupListApi(ListAPIView):
rbac_perms = {
'GET': 'assets.view_asset'
'GET': 'perms.view_assetpermission'
}
def get_object(self):
@@ -226,7 +226,7 @@ class AssetPermUserListApi(BaseAssetPermUserOrUserGroupListApi):
search_fields = ('username', 'email', 'name', 'id', 'source', 'role')
serializer_class = UserSerializer
rbac_perms = {
'GET': 'assets.view_asset'
'GET': 'perms.view_assetpermission'
}
def get_queryset(self):