perf: 修改 perm node title

pull/7753/head
ibuler 2022-03-07 14:38:09 +08:00 committed by 老广
parent 46e119db1f
commit fa2c70c6be
2 changed files with 3 additions and 2 deletions

View File

@ -43,7 +43,7 @@ exclude_permissions = (
('perms', 'rebuildusertreetask', '*', '*'),
('rbac', 'contenttype', '*', '*'),
('rbac', 'permission', 'add,delete,change', 'permission'),
('rbac', 'rolebingding', '*', '*'),
('rbac', 'rolebinding', '*', '*'),
('rbac', 'role', '*', '*'),
('ops', 'adhoc', '*', '*'),
('ops', 'adhocexecution', '*', '*'),
@ -77,6 +77,7 @@ only_system_permissions = (
('orgs', 'organization', '*', '*'),
('xpack', 'license', '*', '*'),
('settings', 'setting', '*', '*'),
('ops', 'task', 'view', 'taskmonitor'),
('terminal', 'terminal', '*', '*'),
('terminal', 'commandstorage', '*', '*'),
('terminal', 'replaystorage', '*', '*'),

View File

@ -339,7 +339,7 @@ class PermissionTreeUtil:
node = TreeNode(**{
'id': p.id,
'name': name,
'title': p.name,
'title': p.app_label_codename,
'pId': model_id,
'isParent': False,
'chkDisabled': self.check_disabled,