mirror of
https://github.com/open-webui/open-webui.git
synced 2026-09-10 22:43:29 +00:00
refac
This commit is contained in:
parent
2558fe1a3b
commit
c035ff7d14
1 changed files with 5 additions and 0 deletions
|
|
@ -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];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue