mirror of https://github.com/jumpserver/jumpserver
fix: 修复获取权限树权限控制
parent
74f88d842d
commit
63ee2dd8fb
|
@ -90,7 +90,7 @@ class SystemRolePermissionsViewSet(BaseRolePermissionsViewSet):
|
|||
role_pk = 'system_role_pk'
|
||||
model = SystemRole
|
||||
rbac_perms = (
|
||||
('get_tree', 'rbac.view_systemrole'),
|
||||
('get_tree', 'rbac.view_permission'),
|
||||
)
|
||||
|
||||
|
||||
|
@ -99,6 +99,6 @@ class OrgRolePermissionsViewSet(BaseRolePermissionsViewSet):
|
|||
role_pk = 'org_role_pk'
|
||||
model = OrgRole
|
||||
rbac_perms = (
|
||||
('get_tree', 'rbac.view_orgrole'),
|
||||
('get_tree', 'rbac.view_permission'),
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in New Issue