mirror of https://github.com/jumpserver/jumpserver
fix: 修复更新资产账号权限控制
parent
5b960fc46b
commit
b37e8cdc3f
|
@ -64,7 +64,8 @@ class AccountViewSet(OrgBulkModelViewSet):
|
||||||
'verify_account': serializers.AssetTaskSerializer
|
'verify_account': serializers.AssetTaskSerializer
|
||||||
}
|
}
|
||||||
rbac_perms = {
|
rbac_perms = {
|
||||||
'verify_account': 'assets.test_authbook'
|
'verify_account': 'assets.test_authbook',
|
||||||
|
'PATCH': 'assets.change_assetaccountsecret'
|
||||||
}
|
}
|
||||||
|
|
||||||
def get_queryset(self):
|
def get_queryset(self):
|
||||||
|
|
|
@ -38,7 +38,7 @@ exclude_permissions = (
|
||||||
('assets', 'assetuser', '*', '*'),
|
('assets', 'assetuser', '*', '*'),
|
||||||
('assets', 'gathereduser', 'add,delete,change', 'gathereduser'),
|
('assets', 'gathereduser', 'add,delete,change', 'gathereduser'),
|
||||||
('assets', 'accountbackupplanexecution', 'delete,change', 'accountbackupplanexecution'),
|
('assets', 'accountbackupplanexecution', 'delete,change', 'accountbackupplanexecution'),
|
||||||
('assets', 'authbook', 'add', 'authbook'),
|
('assets', 'authbook', 'add,change', 'authbook'),
|
||||||
('perms', 'userassetgrantedtreenoderelation', '*', '*'),
|
('perms', 'userassetgrantedtreenoderelation', '*', '*'),
|
||||||
('perms', 'usergrantedmappingnode', '*', '*'),
|
('perms', 'usergrantedmappingnode', '*', '*'),
|
||||||
('perms', 'permnode', '*', '*'),
|
('perms', 'permnode', '*', '*'),
|
||||||
|
|
Loading…
Reference in New Issue