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

@@ -26,11 +26,12 @@ user_perms = (
)
system_user_perms = (
('authentication', 'connectiontoken', 'add,change,view', 'connectiontoken'),
('authentication', 'temptoken', 'add,change,view', 'temptoken'),
('authentication', 'accesskey', '*', '*'),
('tickets', 'ticket', 'view', 'ticket'),
) + user_perms + _view_all_joined_org_perms
('authentication', 'connectiontoken', 'add,view,reuse,expire', 'connectiontoken'),
('authentication', 'temptoken', 'add,change,view', 'temptoken'),
('authentication', 'accesskey', '*', '*'),
('tickets', 'ticket', 'view', 'ticket'),
)
system_user_perms += (user_perms + _view_all_joined_org_perms)
_auditor_perms = (
('rbac', 'menupermission', 'view', 'audit'),