mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-29 00:21:45 -05:00
refac
This commit is contained in:
1 parent
91e32f7787
commit
aceed36114
1 file changed
+1
-6
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user