mirror of https://github.com/jumpserver/jumpserver
fix: 修复更新资产账号权限控制
parent
5b960fc46b
commit
b37e8cdc3f
|
@ -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):
|
||||
|
|
|
@ -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', '*', '*'),
|
||||
|
|
Loading…
Reference in New Issue