Timothy Jaeryang Baek 5 tháng trước cách đây
mục cha
commit
d4388a53f4
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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) => {
-		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;
 		}