From 86e8f3a80beae81879c566eb7edf348c47b7c6a9 Mon Sep 17 00:00:00 2001 From: fit2bot <68588906+fit2bot@users.noreply.github.com> Date: Mon, 16 Oct 2023 15:06:47 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=BB=84=E7=BB=87=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E5=91=98=E4=B8=8D=E8=83=BD=E5=88=9B=E5=BB=BA=E7=94=A8=E6=88=B7?= =?UTF-8?q?=20(#11856)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: feng <1304903146@qq.com> --- apps/rbac/const.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/rbac/const.py b/apps/rbac/const.py index fac97b5db..04bfb1617 100644 --- a/apps/rbac/const.py +++ b/apps/rbac/const.py @@ -79,7 +79,6 @@ exclude_permissions = ( ('rbac', 'systemrolebinding', 'change', 'systemrolebinding'), ('rbac', 'orgrolebinding', 'change', 'orgrolebinding'), ('rbac', 'menupermission', '*', 'menupermission'), - ('rbac', 'role', '*', '*'), ('ops', 'adhocexecution', 'view,add,delete,change', '*'), ('ops', 'jobexecution', 'change,delete', 'jobexecution'), ('ops', 'historicaljob', '*', '*'), @@ -132,7 +131,7 @@ only_system_permissions = ( ('rbac', 'systemrole', '*', '*'), ('rbac', 'rolebinding', '*', '*'), ('rbac', 'systemrolebinding', '*', '*'), - ('rbac', 'orgrole', 'delete,add,change', '*'), + ('rbac', 'orgrole', 'delete,add,change', 'orgrole'), ('orgs', 'organization', '*', '*'), ('xpack', 'license', '*', '*'), ('settings', 'setting', '*', '*'),