Browse Source

fix: 移除权限dashboard

pull/7930/head
Jiangjie.Bai 3 years ago committed by Jiangjie.Bai
parent
commit
996621f303
  1. 1
      apps/rbac/tree.py
  2. 2
      utils/clean_db_content_types.py

1
apps/rbac/tree.py

@ -87,7 +87,6 @@ special_pid_mapper = {
'terminal.status': 'terminal_node', 'terminal.status': 'terminal_node',
'terminal.task': 'terminal_node', 'terminal.task': 'terminal_node',
'audits.ftplog': 'terminal', 'audits.ftplog': 'terminal',
'rbac.menupermission': 'view_other',
'perms.view_myassets': 'my_assets', 'perms.view_myassets': 'my_assets',
'perms.view_myapps': 'my_apps', 'perms.view_myapps': 'my_apps',
'ops.add_commandexecution': 'view_workspace', 'ops.add_commandexecution': 'view_workspace',

2
utils/clean_db_content_types.py

@ -58,7 +58,7 @@ def clean_db_content_types():
('perms', 'applicationpermission', 'view_permuserapplication'), ('perms', 'applicationpermission', 'view_permuserapplication'),
('perms', 'assetpermission', 'view_permuserasset'), ('perms', 'assetpermission', 'view_permuserasset'),
('perms', 'assetpermission', 'view_permusergroupasset'), ('perms', 'assetpermission', 'view_permusergroupasset'),
('rbac', 'menupermission', 'view_dashboard'),
('applications', 'databaseapp', 'add_databaseapp'), ('applications', 'databaseapp', 'add_databaseapp'),
('applications', 'databaseapp', 'change_databaseapp'), ('applications', 'databaseapp', 'change_databaseapp'),
('applications', 'databaseapp', 'delete_databaseapp'), ('applications', 'databaseapp', 'delete_databaseapp'),

Loading…
Cancel
Save