From 8bed983919eefe479a8fb4e9b4101d25dffd2882 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Mon, 1 Jun 2026 15:32:16 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20hide=20'=E6=88=91=E7=9A=84=E4=BB=8A?= =?UTF-8?q?=E6=97=A5=E6=A8=A1=E5=9E=8B=E4=BD=BF=E7=94=A8'=20card=20for=20n?= =?UTF-8?q?on-customer=20roles?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Remove duplicate unprotected card that was always rendered regardless of role, causing 403 for non-customer users. Keep only the customer- only version wrapped in {% if 'customer.*' in roles %}. --- wwwroot/index.ui | 59 ------------------------------------------------ 1 file changed, 59 deletions(-) diff --git a/wwwroot/index.ui b/wwwroot/index.ui index 1c791da..0144186 100644 --- a/wwwroot/index.ui +++ b/wwwroot/index.ui @@ -436,65 +436,6 @@ ] } {% endif %} - ,{ - "widgettype": "VBox", - "options": { - "css": "card", - "width": "100%", - "borderRadius": "12px", - "padding": "20px", - "marginTop": "20px" - }, - "subwidgets": [ - { - "widgettype": "HBox", - "options": { - "width": "100%", - "alignItems": "center", - "marginBottom": "16px" - }, - "subwidgets": [ - { - "widgettype": "Title4", - "options": { - "fontWeight": "600", - "otext": "我的今日模型使用", - "i18n": true - } - }, - { - "widgettype": "Filler" - }, - { - "widgettype": "Button", - "options": { - "label": "刷新", - "border": "none", - "borderRadius": "6px", - "padding": "4px 12px", - "fontSize": "12px" - }, - "binds": [ - { - "wid": "self", - "event": "click", - "actiontype": "method", - "target": "-@ChartBar", - "method": "render_urldata", - "params": {} - } - ] - } - ] - }, - { - "widgettype": "urlwidget", - "options": { - "url": "{{entire_url('user_today_models_chart.ui')}}" - } - } - ] - } {% if 'customer.*' in roles %} ,{ "widgettype": "VBox",