From a8cee26874324105ed3a72d615257650f6db7c7b Mon Sep 17 00:00:00 2001 From: "Jiangjie.Bai" Date: Thu, 17 Mar 2022 17:22:57 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E8=B5=84=E4=BA=A7?= =?UTF-8?q?=E8=AF=A6=E6=83=85=E6=8E=88=E6=9D=83=E7=94=A8=E6=88=B7tab?= =?UTF-8?q?=E9=A1=B5=E7=9A=84=E6=9D=83=E9=99=90=E4=BD=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/assets/api/asset.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/assets/api/asset.py b/apps/assets/api/asset.py index 79e5a451d..ef4003c39 100644 --- a/apps/assets/api/asset.py +++ b/apps/assets/api/asset.py @@ -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):