fix: tool servers ui settings can be bypassed with search
This commit is contained in:
@@ -123,16 +123,28 @@
|
|||||||
'alwaysonwebsearch'
|
'alwaysonwebsearch'
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
...($user?.role === 'admin' ||
|
||||||
id: 'connections',
|
($user?.role === 'user' && $config?.features?.enable_direct_connections)
|
||||||
title: 'Connections',
|
? [
|
||||||
keywords: []
|
{
|
||||||
},
|
id: 'connections',
|
||||||
{
|
title: 'Connections',
|
||||||
id: 'tools',
|
keywords: []
|
||||||
title: 'Tools',
|
}
|
||||||
keywords: []
|
]
|
||||||
},
|
: []),
|
||||||
|
|
||||||
|
...($user?.role === 'admin' ||
|
||||||
|
($user?.role === 'user' && $user?.permissions?.features?.direct_tool_servers)
|
||||||
|
? [
|
||||||
|
{
|
||||||
|
id: 'tools',
|
||||||
|
title: 'Tools',
|
||||||
|
keywords: []
|
||||||
|
}
|
||||||
|
]
|
||||||
|
: []),
|
||||||
|
|
||||||
{
|
{
|
||||||
id: 'personalization',
|
id: 'personalization',
|
||||||
title: 'Personalization',
|
title: 'Personalization',
|
||||||
|
|||||||
Reference in New Issue
Block a user