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

pull/7913/head
Jiangjie.Bai 2022-03-17 17:22:57 +08:00 committed by Jiangjie.Bai
parent 3ed7477057
commit a8cee26874
1 changed files with 2 additions and 2 deletions

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):