From b37e8cdc3f0b579eeacbfc8b9f91d248d1ba17e0 Mon Sep 17 00:00:00 2001 From: "Jiangjie.Bai" Date: Mon, 14 Mar 2022 17:49:18 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E8=B5=84=E4=BA=A7=E8=B4=A6=E5=8F=B7=E6=9D=83=E9=99=90=E6=8E=A7?= =?UTF-8?q?=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/assets/api/accounts.py | 3 ++- apps/rbac/const.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/assets/api/accounts.py b/apps/assets/api/accounts.py index a60ff3e4f..b4e75122b 100644 --- a/apps/assets/api/accounts.py +++ b/apps/assets/api/accounts.py @@ -64,7 +64,8 @@ class AccountViewSet(OrgBulkModelViewSet): 'verify_account': serializers.AssetTaskSerializer } rbac_perms = { - 'verify_account': 'assets.test_authbook' + 'verify_account': 'assets.test_authbook', + 'PATCH': 'assets.change_assetaccountsecret' } def get_queryset(self): diff --git a/apps/rbac/const.py b/apps/rbac/const.py index c8a75fb42..65f7d0867 100644 --- a/apps/rbac/const.py +++ b/apps/rbac/const.py @@ -38,7 +38,7 @@ exclude_permissions = ( ('assets', 'assetuser', '*', '*'), ('assets', 'gathereduser', 'add,delete,change', 'gathereduser'), ('assets', 'accountbackupplanexecution', 'delete,change', 'accountbackupplanexecution'), - ('assets', 'authbook', 'add', 'authbook'), + ('assets', 'authbook', 'add,change', 'authbook'), ('perms', 'userassetgrantedtreenoderelation', '*', '*'), ('perms', 'usergrantedmappingnode', '*', '*'), ('perms', 'permnode', '*', '*'),