mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-06-28 07:47:10 +00:00
perf: 修改 perm node title
This commit is contained in:
parent
46e119db1f
commit
fa2c70c6be
@ -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', '*', '*'),
|
||||||
|
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user