perf: 修改 perm node title

This commit is contained in:
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', '*', '*'), ('perms', 'rebuildusertreetask', '*', '*'),
('rbac', 'contenttype', '*', '*'), ('rbac', 'contenttype', '*', '*'),
('rbac', 'permission', 'add,delete,change', 'permission'), ('rbac', 'permission', 'add,delete,change', 'permission'),
('rbac', 'rolebingding', '*', '*'), ('rbac', 'rolebinding', '*', '*'),
('rbac', 'role', '*', '*'), ('rbac', 'role', '*', '*'),
('ops', 'adhoc', '*', '*'), ('ops', 'adhoc', '*', '*'),
('ops', 'adhocexecution', '*', '*'), ('ops', 'adhocexecution', '*', '*'),
@ -77,6 +77,7 @@ only_system_permissions = (
('orgs', 'organization', '*', '*'), ('orgs', 'organization', '*', '*'),
('xpack', 'license', '*', '*'), ('xpack', 'license', '*', '*'),
('settings', 'setting', '*', '*'), ('settings', 'setting', '*', '*'),
('ops', 'task', 'view', 'taskmonitor'),
('terminal', 'terminal', '*', '*'), ('terminal', 'terminal', '*', '*'),
('terminal', 'commandstorage', '*', '*'), ('terminal', 'commandstorage', '*', '*'),
('terminal', 'replaystorage', '*', '*'), ('terminal', 'replaystorage', '*', '*'),

View File

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