feat: user permissions

This commit is contained in:
Timothy Jaeryang Baek
2024-11-16 21:31:57 -08:00
parent 057c957f5d
commit cf2dcf1dc3
5 changed files with 16 additions and 221 deletions

View File

@@ -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();