diff --git a/src/lib/components/chat/MessageInput.svelte b/src/lib/components/chat/MessageInput.svelte index 62f41b5fe..fd35c7035 100644 --- a/src/lib/components/chat/MessageInput.svelte +++ b/src/lib/components/chat/MessageInput.svelte @@ -92,7 +92,7 @@ }; const uploadFileHandler = async (file) => { - if ($user?.role !== 'admin' && !($_user?.permissions?.chat?.file_upload ?? true)) { + if ($_user?.role !== 'admin' && !($_user?.permissions?.chat?.file_upload ?? true)) { toast.error($i18n.t('You do not have permission to upload files.')); return null; }