mirror of
https://github.com/open-webui/open-webui.git
synced 2026-12-05 19:17:56 -05:00
refac
This commit is contained in:
1 parent
a8e7ac3987
commit
bcff000ad7
1 file changed
+1
-1
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user