enh: chat file upload permission

This commit is contained in:
Timothy Jaeryang Baek
2024-11-16 02:31:04 -08:00
parent f9412f72f1
commit 646d926f70
4 changed files with 20 additions and 5 deletions

View File

@@ -15,7 +15,8 @@
chat: {
delete: true,
edit: true,
temporary: true
temporary: true,
file_upload: true
}
};
</script>
@@ -168,6 +169,14 @@
<div>
<div class=" mb-2 text-sm font-medium">{$i18n.t('Chat Permissions')}</div>
<div class=" flex w-full justify-between my-2 pr-2">
<div class=" self-center text-xs font-medium">
{$i18n.t('Allow File Upload')}
</div>
<Switch bind:state={permissions.chat.file_upload} />
</div>
<div class=" flex w-full justify-between my-2 pr-2">
<div class=" self-center text-xs font-medium">
{$i18n.t('Allow Chat Delete')}