@@ -123,16 +123,28 @@
'alwaysonwebsearch'
]
},
- {
- id: 'connections',
- title: 'Connections',
- keywords: []
- },
- id: 'tools',
- title: 'Tools',
+ ...($user?.role === 'admin' ||
+ ($user?.role === 'user' && $config?.features?.enable_direct_connections)
+ ? [
+ {
+ id: 'connections',
+ title: 'Connections',
+ keywords: []
+ }
+ ]
+ : []),
+
+ ($user?.role === 'user' && $user?.permissions?.features?.direct_tool_servers)
+ id: 'tools',
+ title: 'Tools',
{
id: 'personalization',
title: 'Personalization',