This commit is contained in:
Timothy Jaeryang Baek
2026-06-17 00:39:11 +02:00
parent caedcbae49
commit ed4cb358a0
5 changed files with 68 additions and 31 deletions
@@ -161,6 +161,11 @@
return null;
});
if (!chat && item) {
if (!($user?.role === 'admin' || ($user?.permissions?.chat?.import ?? true))) {
toast.error($i18n.t('Access prohibited'));
return;
}
chat = await importChats(localStorage.token, [
{
chat: item.chat,