mirror of
https://github.com/open-webui/open-webui.git
synced 2026-02-24 04:00:31 +01:00
refac
This commit is contained in:
@@ -833,6 +833,11 @@
|
||||
};
|
||||
|
||||
const uploadWeb = async (urls) => {
|
||||
if ($user?.role !== 'admin' && !($user?.permissions?.chat?.web_upload ?? true)) {
|
||||
toast.error($i18n.t('You do not have permission to upload web content.'));
|
||||
return;
|
||||
}
|
||||
|
||||
if (!Array.isArray(urls)) {
|
||||
urls = [urls];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user