mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-16 20:07:49 +01:00
feat: user permissions
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user