From 7c7db5ac6e22d0cb5067807db41cff5ffdfdad46 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Mon, 17 Aug 2026 15:51:33 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=AE=A1=E8=AE=A1=E6=97=A5=E5=BF=97?= =?UTF-8?q?=E8=8F=9C=E5=8D=95=E9=A1=B9(owner.audit=20=E5=8F=AF=E8=A7=81)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wwwroot/global_menu.ui | 10 ++++++++++ 1 file changed, 10 insertions(+) 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" }