security: 平台内部助手菜单门控改为owner组织角色判定

与platform_ability代码层判定对齐: roles中任一orgtypeid='owner'角色可见
This commit is contained in:
yumoqing 2026-09-02 16:14:19 +08:00
parent 67e77a11c3
commit 1be7424444

View File

@ -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": "平台内部助手",