From d4388a53f4f40f263abd70ca9c0063dea582b2b5 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Sat, 16 Nov 2024 21:43:57 -0800 Subject: [PATCH] fix --- src/lib/components/chat/MessageInput.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }