mirror of
https://github.com/open-webui/open-webui
synced 2025-06-26 18:26:48 +00:00
feat: enforced temporary chat
This commit is contained in:
@@ -199,6 +199,12 @@
|
||||
temporaryChatEnabled.set(true);
|
||||
}
|
||||
|
||||
console.log($user.permissions);
|
||||
|
||||
if ($user?.permissions?.chat?.temporary_enforced) {
|
||||
temporaryChatEnabled.set(true);
|
||||
}
|
||||
|
||||
// Check for version updates
|
||||
if ($user.role === 'admin') {
|
||||
// Check if the user has dismissed the update toast in the last 24 hours
|
||||
|
||||
Reference in New Issue
Block a user