mirror of
https://github.com/open-webui/open-webui
synced 2025-06-22 18:07:17 +00:00
fix: direct tool servers not displaying
This commit is contained in:
parent
b08fc297cf
commit
a196b9dc26
@ -211,9 +211,7 @@
|
|||||||
: []),
|
: []),
|
||||||
|
|
||||||
...($user?.role === 'admin' ||
|
...($user?.role === 'admin' ||
|
||||||
($user?.role === 'user' &&
|
($user?.role === 'user' && $user?.permissions?.features?.direct_tool_servers)
|
||||||
$user?.permissions?.features?.direct_tool_servers &&
|
|
||||||
$config?.features?.direct_tool_servers)
|
|
||||||
? [
|
? [
|
||||||
{
|
{
|
||||||
id: 'tools',
|
id: 'tools',
|
||||||
@ -688,7 +686,7 @@
|
|||||||
</button>
|
</button>
|
||||||
{/if}
|
{/if}
|
||||||
{:else if tabId === 'tools'}
|
{:else if tabId === 'tools'}
|
||||||
{#if $user?.role === 'admin' || ($user?.role === 'user' && $user?.permissions?.features?.direct_tool_servers && $config?.features?.direct_tool_servers)}
|
{#if $user?.role === 'admin' || ($user?.role === 'user' && $user?.permissions?.features?.direct_tool_servers)}
|
||||||
<button
|
<button
|
||||||
role="tab"
|
role="tab"
|
||||||
aria-controls="tab-tools"
|
aria-controls="tab-tools"
|
||||||
|
Loading…
Reference in New Issue
Block a user