From 56af3e735720405e8a38ef9896b4692203d8a45d Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Thu, 31 Jul 2025 18:59:37 +0400 Subject: [PATCH] refac: granular chat controls permissions --- .../admin/Users/Groups/Permissions.svelte | 34 ++++++++++--------- 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/src/lib/components/admin/Users/Groups/Permissions.svelte b/src/lib/components/admin/Users/Groups/Permissions.svelte index 24a7f1216..fafff46c1 100644 --- a/src/lib/components/admin/Users/Groups/Permissions.svelte +++ b/src/lib/components/admin/Users/Groups/Permissions.svelte @@ -266,29 +266,31 @@ -
-
- {$i18n.t('Allow Chat Valves')} + {#if permissions.chat.controls} +
+
+ {$i18n.t('Allow Chat Valves')} +
+ +
- -
+
+
+ {$i18n.t('Allow Chat System Prompt')} +
-
-
- {$i18n.t('Allow Chat System Prompt')} +
- -
+
+
+ {$i18n.t('Allow Chat Params')} +
-
-
- {$i18n.t('Allow Chat Params')} +
- - -
+ {/if}