mirror of
https://github.com/open-webui/open-webui
synced 2025-06-23 02:16:52 +00:00
fix/refac: enforce multiple models permission to imported chats
This commit is contained in:
parent
805e980ae5
commit
a47e3b429e
@ -872,6 +872,11 @@
|
||||
(chatContent?.models ?? undefined) !== undefined
|
||||
? chatContent.models
|
||||
: [chatContent.models ?? ''];
|
||||
|
||||
if (!($user?.role === 'admin' || ($user?.permissions?.chat?.multiple_models ?? true))) {
|
||||
selectedModels = selectedModels.length > 0 ? [selectedModels[0]] : [''];
|
||||
}
|
||||
|
||||
oldSelectedModelIds = selectedModels;
|
||||
|
||||
history =
|
||||
|
Loading…
Reference in New Issue
Block a user