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