fix: tool servers ui settings can be bypassed with search

This commit is contained in:
Timothy Jaeryang Baek 2025-05-07 02:41:33 +04:00
parent c667d27c38
commit ed5de96d1d

View File

@ -123,16 +123,28 @@
'alwaysonwebsearch'
]
},
{
id: 'connections',
title: 'Connections',
keywords: []
},
{
id: 'tools',
title: 'Tools',
keywords: []
},
...($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',