This commit is contained in:
Timothy Jaeryang Baek 2024-11-16 15:26:01 -08:00
parent c8a3c42ea8
commit 7fe10763c1
2 changed files with 5 additions and 23 deletions

View File

@ -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 @@
<GroupModal
bind:show={showDefaultPermissionsModal}
tabs={['permissions']}
permissions={defaultPermissions}
bind:permissions={defaultPermissions}
custom={false}
onSubmit={updateDefaultPermissionsHandler}
/>

View File

@ -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