From 10c877c12053f29e54c0a6af80be5cc34f48cd4d Mon Sep 17 00:00:00 2001 From: fit2bot <68588906+fit2bot@users.noreply.github.com> Date: Fri, 11 Mar 2022 13:30:14 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=B7=A5=E5=8D=95tick?= =?UTF-8?q?et=20exclude=20perm=20(#7799)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: 修复工单ticket exclude perm * fix: 修复perm tree Co-authored-by: feng626 <1304903146@qq.com> --- apps/rbac/const.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/apps/rbac/const.py b/apps/rbac/const.py index 61a009e1c..15ae12b05 100644 --- a/apps/rbac/const.py +++ b/apps/rbac/const.py @@ -23,6 +23,10 @@ exclude_permissions = ( ('common', 'setting', '*', '*'), ('authentication', 'privatetoken', '*', '*'), + ('authentication', 'accesskey', 'change,delete', 'accesskey'), + ('authentication', 'connectiontoken', 'change,delete', 'connectiontoken'), + ('authentication', 'ssotoken', 'change,delete', 'ssotoken'), + ('authentication', 'superconnectiontoken', 'change,delete', 'superconnectiontoken'), ('users', 'userpasswordhistory', '*', '*'), ('applications', 'applicationuser', '*', '*'), ('applications', 'historicalaccount', '*', '*'), @@ -56,9 +60,9 @@ exclude_permissions = ( ('audits', 'passwordchangelog', 'add,change,delete', 'passwordchangelog'), ('audits', 'userloginlog', 'add,change,delete,change', 'userloginlog'), ('audits', 'ftplog', 'change,delete', 'ftplog'), - ('tickets', 'ticket', '*', '*'), ('tickets', 'ticketflow', 'add,delete', 'ticketflow'), ('tickets', 'comment', 'change,delete', 'comment'), + ('tickets', 'ticket', 'delete', 'ticket'), ('tickets', 'ticketstep', '*', '*'), ('tickets', 'approvalrule', '*', '*'), ('xpack', 'interface', '*', '*'), @@ -76,6 +80,7 @@ exclude_permissions = ( only_system_permissions = ( + ('assets', 'platform', '*', '*'), ('users', 'user', 'delete', 'user'), ('rbac', 'role', 'delete,add,change', 'role'), ('rbac', 'systemrole', '*', '*'),