open-webui/backend/open_webui/utils/access_control
Classic298 d9e23b90c1
refac: share one folder write-access check across chat folder_id paths (#28366)
Chat creation and chat moves each carried their own copy of the same folder_id validation, resolving the folder and checking ownership and shared write access in slightly different ways. Both now call a single has_folder_write_access helper, which the chat-completions creation path uses as well, so ownership, inherited write grants and nonexistent or malformed ids behave identically everywhere a chat folder_id is set. The owner case also costs one query fewer than before.
2026-08-10 19:17:18 -06:00
..
__init__.py perf: use the orjson codec for the permission deep copy (#27807) 2026-07-31 17:32:14 -04:00
files.py perf: build debug log messages lazily so disabled debug logs cost nothing (#27834) 2026-07-31 19:09:01 -05:00
folders.py refac: share one folder write-access check across chat folder_id paths (#28366) 2026-08-10 19:17:18 -06:00