mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-13 12:55:19 +00:00
fix: tool servers ui settings can be bypassed with search
This commit is contained in:
parent
c667d27c38
commit
ed5de96d1d
1 changed files with 22 additions and 10 deletions
|
|
@ -123,16 +123,28 @@
|
|||
'alwaysonwebsearch'
|
||||
]
|
||||
},
|
||||
...($user?.role === 'admin' ||
|
||||
($user?.role === 'user' && $config?.features?.enable_direct_connections)
|
||||
? [
|
||||
{
|
||||
id: 'connections',
|
||||
title: 'Connections',
|
||||
keywords: []
|
||||
},
|
||||
}
|
||||
]
|
||||
: []),
|
||||
|
||||
...($user?.role === 'admin' ||
|
||||
($user?.role === 'user' && $user?.permissions?.features?.direct_tool_servers)
|
||||
? [
|
||||
{
|
||||
id: 'tools',
|
||||
title: 'Tools',
|
||||
keywords: []
|
||||
},
|
||||
}
|
||||
]
|
||||
: []),
|
||||
|
||||
{
|
||||
id: 'personalization',
|
||||
title: 'Personalization',
|
||||
|
|
|
|||
Loading…
Reference in a new issue