Hide marketplace menus for non-system users
- Restrict App Marketplace, Node Marketplace, and Agent Marketplace visibility to System Users only - Non-system users can only see Tool Marketplace in the Development group - Update comment to reflect the actual filtering logic
This commit is contained in:
parent
286a9aa21e
commit
2a9e456b83
@ -191,9 +191,9 @@ export const useMenuStore = defineStore('menu', () => {
|
||||
return false
|
||||
}
|
||||
|
||||
// 开发分组下只允许显示:应用市场、节点市场、智能体市场、工具市场
|
||||
// 开发分组下只允许显示:工具市场(非 System User 不显示应用市场、节点市场、智能体市场)
|
||||
if (m.parentId === 'dev-group') {
|
||||
const allowedDevMenus = ['app-marketplace', 'node-marketplace', 'agent-marketplace', 'tool-marketplace']
|
||||
const allowedDevMenus = ['tool-marketplace']
|
||||
if (!allowedDevMenus.includes(m.id)) {
|
||||
return false
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user