From 1be7424444a1f3ffe57918d9a1223c34b7d8164b Mon Sep 17 00:00:00 2001 From: yumoqing Date: Wed, 2 Sep 2026 16:14:19 +0800 Subject: [PATCH] =?UTF-8?q?security:=20=E5=B9=B3=E5=8F=B0=E5=86=85?= =?UTF-8?q?=E9=83=A8=E5=8A=A9=E6=89=8B=E8=8F=9C=E5=8D=95=E9=97=A8=E6=8E=A7?= =?UTF-8?q?=E6=94=B9=E4=B8=BAowner=E7=BB=84=E7=BB=87=E8=A7=92=E8=89=B2?= =?UTF-8?q?=E5=88=A4=E5=AE=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 与platform_ability代码层判定对齐: roles中任一orgtypeid='owner'角色可见 --- wwwroot/index.ui | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wwwroot/index.ui b/wwwroot/index.ui index 2f3f5f0..4b3f3dd 100644 --- a/wwwroot/index.ui +++ b/wwwroot/index.ui @@ -199,7 +199,8 @@ "icon": "", "script": "this.open_tab({name:'generic_agent',label:'通用助手',url:'/pipeline_core/agent_generic',removable:true})" }, -{% if is_admin %} +{% set is_owner_org = namespace(v=false) %}{% for r in roles %}{% if r.split('.')[0] == 'owner' %}{% set is_owner_org.v = true %}{% endif %}{% endfor %} +{% if is_owner_org.v %} { "name": "platform_agent", "label": "平台内部助手",