From 7fe10763c12fc5950c2770c99164b81cfa9ed4c8 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Sat, 16 Nov 2024 15:26:01 -0800 Subject: [PATCH] fix --- src/lib/components/admin/Users/Groups.svelte | 5 ++-- .../admin/Users/Groups/EditGroupModal.svelte | 23 ++----------------- 2 files changed, 5 insertions(+), 23 deletions(-) diff --git a/src/lib/components/admin/Users/Groups.svelte b/src/lib/components/admin/Users/Groups.svelte index 5950438fb..5911718ba 100644 --- a/src/lib/components/admin/Users/Groups.svelte +++ b/src/lib/components/admin/Users/Groups.svelte @@ -53,6 +53,7 @@ tools: false }, chat: { + file_upload: true, delete: true, edit: true, temporary: true @@ -90,7 +91,7 @@ if (res) { toast.success($i18n.t('Default permissions updated successfully')); - defaultPermissions = group.permissions; + defaultPermissions = await getUserDefaultPermissions(localStorage.token); } }; @@ -203,7 +204,7 @@ diff --git a/src/lib/components/admin/Users/Groups/EditGroupModal.svelte b/src/lib/components/admin/Users/Groups/EditGroupModal.svelte index ff9611687..6d28db992 100644 --- a/src/lib/components/admin/Users/Groups/EditGroupModal.svelte +++ b/src/lib/components/admin/Users/Groups/EditGroupModal.svelte @@ -37,6 +37,7 @@ tools: false }, chat: { + file_upload: true, delete: true, edit: true, temporary: true @@ -58,27 +59,6 @@ loading = false; show = false; - - name = ''; - permissions = { - model: { - filter: false, - model_ids: [], - default_id: '' - }, - workspace: { - models: false, - knowledge: false, - prompts: false, - tools: false - }, - chat: { - delete: true, - edit: true, - temporary: true - } - }; - userIds = []; }; const init = () => { @@ -93,6 +73,7 @@ tools: false }, chat: { + file_upload: true, delete: true, edit: true, temporary: true