fix: 默认增加普通用户作业中心权限

pull/9796/head
Aaron3S 2023-02-27 17:13:54 +08:00 committed by Jiangjie.Bai
parent 32081ea6ec
commit 094ad85d39
1 changed files with 9 additions and 6 deletions

View File

@ -18,6 +18,10 @@ user_perms = (
('assets', 'asset', 'match', 'asset'),
('assets', 'systemuser', 'match', 'systemuser'),
('assets', 'node', 'match', 'node'),
("ops", "adhoc", "*", "*"),
("ops", "playbook", "*", "*"),
("ops", "job", "*", "*"),
("ops", "jobexecution", "*", "*"),
)
system_user_perms = (
@ -41,7 +45,6 @@ auditor_perms = user_perms + _auditor_perms
system_auditor_perms = system_user_perms + _auditor_perms + _view_root_perms
app_exclude_perms = [
('users', 'user', 'add,delete', 'user'),
('orgs', 'org', 'add,delete,change', 'org'),