From bcff000ad7426099ebbed9d7c2153e5123622342 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Wed, 25 Nov 2026 03:07:28 +0400 Subject: [PATCH] refac --- backend/open_webui/models/chats.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/open_webui/models/chats.py b/backend/open_webui/models/chats.py index c3fe5c8a6b..b9782932be 100644 --- a/backend/open_webui/models/chats.py +++ b/backend/open_webui/models/chats.py @@ -1980,7 +1980,7 @@ class ChatTable: if ( folder and (permission == 'read' or (folder.data or {}).get('share_mode') == 'continue') - and await has_folder_access(user.id, folder, 'read', db) + and await has_folder_access(user.id, folder, permission, db) ): return True # A run chat is readable by anyone the automation is shared with.