Timothy Jaeryang Baek 5 months ago
parent
commit
d4388a53f4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/lib/components/chat/MessageInput.svelte

+ 1 - 1
src/lib/components/chat/MessageInput.svelte

@@ -92,7 +92,7 @@
 	};
 	};
 
 
 	const uploadFileHandler = async (file) => {
 	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.'));
 			toast.error($i18n.t('You do not have permission to upload files.'));
 			return null;
 			return null;
 		}
 		}