diff --git a/wwwroot/global_menu.ui b/wwwroot/global_menu.ui index 0186c12e..12945e02 100644 --- a/wwwroot/global_menu.ui +++ b/wwwroot/global_menu.ui @@ -5,6 +5,7 @@ {% set is_superuser = 'owner.superuser' in roles %} {% set is_reseller_operator = 'reseller.operator' in roles %} {% set is_any_admin = '.admin' in role_str %} +{% set is_audit = 'owner.audit' in roles %} { "widgettype": "Menu", "id": "global_nav_menu", @@ -426,6 +427,15 @@ "url": "{{entire_url('/dapi/downapp/')}}", "target": "app.sage_main_content" } +{% if is_audit %} + ,{ + "name": "audit_log", + "label": "审计日志", + "icon": "{{entire_url('/imgs/key.svg')}}", + "url": "{{entire_url('/app_audit/index.ui')}}", + "target": "app.sage_main_content" + } +{% endif %} ], "menuitem_css": "menuitem" }