This commit is contained in:
Timothy Jaeryang Baek 2024-11-16 21:43:57 -08:00
parent f5df0625e3
commit d4388a53f4

View File

@ -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;
}