perf: 优化一些 rbac 权限位,着重 connection token 的

This commit is contained in:
ibuler
2023-07-13 16:00:24 +08:00
committed by Bryan
parent bedc83bd3a
commit a1ded0c737
12 changed files with 209 additions and 159 deletions

View File

@@ -65,6 +65,7 @@ special_pid_mapper = {
'acls.commandgroup': 'perms',
'acls.loginacl': 'perms',
'acls.loginassetacl': 'perms',
'acls.connectmethodacl': 'perms',
'xpack.account': 'cloud_import',
'xpack.syncinstancedetail': 'cloud_import',
'xpack.syncinstancetask': 'cloud_import',
@@ -390,7 +391,7 @@ class PermissionTreeUtil:
'chkDisabled': self.check_disabled,
'checked': checked,
'meta': {
'type': tp,
'type': tp,
},
**data
}