fix: a pipe model's Valves button follows the Allow Chat Valves permission (#32772)

This commit is contained in:
G30 authored and GitHub committed 2026-10-21 03:23:16 +09:00
1 parent 2355b8a369
commit 46cdd70d7b
1 file changed
+1 -1
+1 -1
View File
@@ -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