mirror of
https://github.com/open-webui/open-webui
synced 2025-05-12 17:41:26 +00:00
fix: tool servers ui settings can be bypassed with search
This commit is contained in:
parent
c667d27c38
commit
ed5de96d1d
@ -123,16 +123,28 @@
|
|||||||
'alwaysonwebsearch'
|
'alwaysonwebsearch'
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
...($user?.role === 'admin' ||
|
||||||
|
($user?.role === 'user' && $config?.features?.enable_direct_connections)
|
||||||
|
? [
|
||||||
{
|
{
|
||||||
id: 'connections',
|
id: 'connections',
|
||||||
title: 'Connections',
|
title: 'Connections',
|
||||||
keywords: []
|
keywords: []
|
||||||
},
|
}
|
||||||
|
]
|
||||||
|
: []),
|
||||||
|
|
||||||
|
...($user?.role === 'admin' ||
|
||||||
|
($user?.role === 'user' && $user?.permissions?.features?.direct_tool_servers)
|
||||||
|
? [
|
||||||
{
|
{
|
||||||
id: 'tools',
|
id: 'tools',
|
||||||
title: 'Tools',
|
title: 'Tools',
|
||||||
keywords: []
|
keywords: []
|
||||||
},
|
}
|
||||||
|
]
|
||||||
|
: []),
|
||||||
|
|
||||||
{
|
{
|
||||||
id: 'personalization',
|
id: 'personalization',
|
||||||
title: 'Personalization',
|
title: 'Personalization',
|
||||||
|
Loading…
Reference in New Issue
Block a user