From a92314cf396260f4dc0780c441a84f00ccbb4e2f Mon Sep 17 00:00:00 2001 From: yumoqing Date: Fri, 28 Aug 2026 16:49:49 +0800 Subject: [PATCH] =?UTF-8?q?fix(menu):=20is=5Fadmin=20=E5=8E=BB=E6=8E=89=20?= =?UTF-8?q?*.admin=20=E9=80=9A=E9=85=8D=E2=80=94=E2=80=94get=5Fuserroles?= =?UTF-8?q?=20=E4=BC=9A=E6=8A=8A=E6=AF=8F=E4=B8=AA=E8=A7=92=E8=89=B2?= =?UTF-8?q?=E6=89=A9=E5=B1=95=E5=87=BA=20*.{name}=20=E5=BD=A2=E5=BC=8F,?= =?UTF-8?q?=E5=AE=A2=E6=88=B7=E6=9C=BA=E6=9E=84=E7=AE=A1=E7=90=86=E5=91=98?= =?UTF-8?q?=E8=A2=AB=E8=AF=AF=E5=88=A4=E4=B8=BA=E5=B9=B3=E5=8F=B0=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E5=91=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wwwroot/index.ui | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wwwroot/index.ui b/wwwroot/index.ui index e6f53e0..5f5f700 100644 --- a/wwwroot/index.ui +++ b/wwwroot/index.ui @@ -1,7 +1,7 @@ {% set roles = get_user_roles(get_user()) %} {% set is_fin = ('owner.superuser' in roles) or ('owner.admin' in roles) or ('owner.account' in roles) or ('reseller.admin' in roles) or ('reseller.accountant' in roles) or ('reseller.operator' in roles) %} {% set is_customer = ('customer.customer' in roles) or ('*.customer' in roles) %} -{% set is_admin = ('owner.superuser' in roles) or ('owner.admin' in roles) or ('*.superuser' in roles) or ('*.admin' in roles) %} +{% set is_admin = ('owner.superuser' in roles) or ('owner.admin' in roles) %} { "id": "app", "widgettype": "VBox",