mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-25 23:00:53 -05:00
fix: Enforce Temporary Chat switches an open new chat to temporary without a reload (#34513)
This commit is contained in:
1 file changed
+3
@@ -126,6 +126,9 @@
|
||||
if (!localStorage.token) return;
|
||||
try {
|
||||
user.set(await getSessionUser(localStorage.token));
|
||||
if ($user?.role !== 'admin' && $user?.permissions?.chat?.temporary_enforced && !$chatId) {
|
||||
temporaryChatEnabled.set(true);
|
||||
}
|
||||
const results = await Promise.allSettled([
|
||||
getBackendConfig().then((value) => config.set(value)),
|
||||
setModels(),
|
||||
|
||||
Reference in new issue
Block a user