This commit is contained in:
Timothy Jaeryang Baek
2026-02-22 19:18:25 -06:00
parent 2558fe1a3b
commit c035ff7d14

View File

@@ -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];
}