mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-10 20:00:10 +00:00
Fix rbac (#7737)
* perf: 修改 rbac role bingding * fix: suggestion perm * perf: 修改 requirements * perf: 修改 rbac * fix: auditor_perms Co-authored-by: feng626 <1304903146@qq.com>
This commit is contained in:
@@ -20,6 +20,7 @@ exclude_permissions = (
|
||||
('admin', '*', '*', '*'),
|
||||
('sessions', '*', '*', '*'),
|
||||
('notifications', '*', '*', '*'),
|
||||
('common', 'setting', '*', '*'),
|
||||
|
||||
('applications', 'applicationuser', '*', '*'),
|
||||
('applications', 'historicalaccount', '*', '*'),
|
||||
@@ -42,6 +43,8 @@ exclude_permissions = (
|
||||
('perms', 'rebuildusertreetask', '*', '*'),
|
||||
('rbac', 'contenttype', '*', '*'),
|
||||
('rbac', 'permission', 'add,delete,change', 'permission'),
|
||||
('rbac', 'rolebingding', '*', '*'),
|
||||
('rbac', 'role', '*', '*'),
|
||||
('ops', 'adhoc', '*', '*'),
|
||||
('ops', 'adhocexecution', '*', '*'),
|
||||
('ops', 'celerytask', '*', '*'),
|
||||
@@ -74,6 +77,7 @@ only_system_permissions = (
|
||||
('orgs', 'organization', '*', '*'),
|
||||
('xpack', 'license', '*', '*'),
|
||||
('settings', 'setting', '*', '*'),
|
||||
('terminal', 'terminal', '*', '*'),
|
||||
)
|
||||
|
||||
only_org_permissions = (
|
||||
|
Reference in New Issue
Block a user