mirror of
https://github.com/open-webui/open-webui.git
synced 2026-10-28 06:22:33 +00:00
fix: a pipe model's Valves button follows the Allow Chat Valves permission (#32772)
This commit is contained in:
parent
2355b8a369
commit
46cdd70d7b
1 changed files with 1 additions and 1 deletions
|
|
@ -2482,7 +2482,7 @@
|
|||
</div>
|
||||
|
||||
<div class="flex flex-1 items-center min-w-0 overflow-x-auto scrollbar-none">
|
||||
{#if selectedModelIds.length === 1 && $models.find((m) => m.id === selectedModelIds[0])?.has_user_valves}
|
||||
{#if selectedModelIds.length === 1 && $models.find((m) => m.id === selectedModelIds[0])?.has_user_valves && ($_user?.role === 'admin' || ($_user?.permissions?.chat?.valves ?? true))}
|
||||
<div class="ml-1 flex gap-1.5 shrink-0">
|
||||
<Tooltip content={$i18n.t('Valves')} placement="top">
|
||||
<button
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue