mirror of
https://github.com/open-webui/open-webui
synced 2024-11-21 23:57:51 +00:00
fix
This commit is contained in:
parent
f5df0625e3
commit
d4388a53f4
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user