fix: 修复更新资产账号权限控制

pull/7840/head
Jiangjie.Bai 2022-03-14 17:49:18 +08:00 committed by Jiangjie.Bai
parent 5b960fc46b
commit b37e8cdc3f
2 changed files with 3 additions and 2 deletions

View File

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

View File

@ -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', '*', '*'),