fix: 修复获取权限树权限控制

pull/8119/head
Jiangjie.Bai 2022-04-20 19:58:39 +08:00 committed by Jiangjie.Bai
parent 74f88d842d
commit 63ee2dd8fb
1 changed files with 2 additions and 2 deletions

View File

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