perf: 工作台支持 root

This commit is contained in:
ibuler
2022-07-07 16:21:39 +08:00
committed by Jiangjie.Bai
parent ce2f6fdc84
commit f0fbc73f73
3 changed files with 3 additions and 4 deletions

View File

@@ -6,7 +6,6 @@ _view_root_perms = (
('orgs', 'organization', 'view', 'rootorg'),
)
# 工作台也区分组织后再考虑
user_perms = (
('rbac', 'menupermission', 'view', 'workbench'),
('rbac', 'menupermission', 'view', 'webterminal'),
@@ -25,7 +24,7 @@ system_user_perms = (
('authentication', 'temptoken', 'add,change,view', 'temptoken'),
('authentication', 'accesskey', '*', '*'),
('tickets', 'ticket', 'view', 'ticket'),
) + user_perms
) + user_perms + _view_root_perms
_auditor_perms = (
('rbac', 'menupermission', 'view', 'audit'),