feat: user permissions

This commit is contained in:
Timothy Jaeryang Baek committed 2024-11-16 21:31:57 -08:00
1 parent 057c957f5d
commit cf2dcf1dc3
5 files changed
+16 -221

No files matched your search

@@ -92,6 +92,11 @@
};
const uploadFileHandler = async (file) => {
if (!($user?.permissions?.chat?.file_upload ?? true)) {
toast.error($i18n.t('You do not have permission to upload files.'));
return null;
}
console.log(file);
const tempItemId = uuidv4();