mirror of
https://github.com/open-webui/open-webui
synced 2025-04-25 08:48:21 +00:00
fix: temp chat
This commit is contained in:
parent
4ad10f0c6e
commit
193a927aba
@ -195,14 +195,14 @@
|
||||
showChangelog.set($settings?.version !== $config.version);
|
||||
}
|
||||
|
||||
if ($page.url.searchParams.get('temporary-chat') === 'true') {
|
||||
temporaryChatEnabled.set(true);
|
||||
}
|
||||
if ($user?.permissions?.chat?.temporary ?? true) {
|
||||
if ($page.url.searchParams.get('temporary-chat') === 'true') {
|
||||
temporaryChatEnabled.set(true);
|
||||
}
|
||||
|
||||
console.log($user?.permissions);
|
||||
|
||||
if ($user?.permissions?.chat?.temporary_enforced) {
|
||||
temporaryChatEnabled.set(true);
|
||||
if ($user?.permissions?.chat?.temporary_enforced) {
|
||||
temporaryChatEnabled.set(true);
|
||||
}
|
||||
}
|
||||
|
||||
// Check for version updates
|
||||
|
Loading…
Reference in New Issue
Block a user