This commit is contained in:
Timothy Jaeryang Baek committed 2026-11-25 05:14:02 +04:00
1 parent 91e32f7787
commit aceed36114
1 file changed
+1 -6
+1 -6
View File
@@ -1961,12 +1961,7 @@ class ChatTable:
chat = result.first()
if not chat:
return False
if (
chat.user_id == user.id
or user.role == 'admin'
and permission == 'read'
and ENABLE_ADMIN_CHAT_ACCESS
):
if chat.user_id == user.id or user.role == 'admin' and permission == 'read' and ENABLE_ADMIN_CHAT_ACCESS:
return True
from open_webui.models.shared_chats import SharedChats