From 996621f30381a8777e7718b843dbb78ca1f74167 Mon Sep 17 00:00:00 2001 From: "Jiangjie.Bai" Date: Fri, 18 Mar 2022 16:53:09 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=A7=BB=E9=99=A4=E6=9D=83=E9=99=90dash?= =?UTF-8?q?board?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/rbac/tree.py | 1 - utils/clean_db_content_types.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/rbac/tree.py b/apps/rbac/tree.py index 083e64c96..5ea43e5ee 100644 --- a/apps/rbac/tree.py +++ b/apps/rbac/tree.py @@ -87,7 +87,6 @@ special_pid_mapper = { 'terminal.status': 'terminal_node', 'terminal.task': 'terminal_node', 'audits.ftplog': 'terminal', - 'rbac.menupermission': 'view_other', 'perms.view_myassets': 'my_assets', 'perms.view_myapps': 'my_apps', 'ops.add_commandexecution': 'view_workspace', diff --git a/utils/clean_db_content_types.py b/utils/clean_db_content_types.py index 9ca387be2..646a9d051 100644 --- a/utils/clean_db_content_types.py +++ b/utils/clean_db_content_types.py @@ -58,7 +58,7 @@ def clean_db_content_types(): ('perms', 'applicationpermission', 'view_permuserapplication'), ('perms', 'assetpermission', 'view_permuserasset'), ('perms', 'assetpermission', 'view_permusergroupasset'), - + ('rbac', 'menupermission', 'view_dashboard'), ('applications', 'databaseapp', 'add_databaseapp'), ('applications', 'databaseapp', 'change_databaseapp'), ('applications', 'databaseapp', 'delete_databaseapp'),