mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 19:38:46 -05:00
[PR #23698] [CLOSED] fix: add missing db parameter to filter_allowed_access_grants in update_note_access_by_id #66177
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/23698
Author: @Ricardo-M-L
Created: 4/14/2026
Status: ❌ Closed
Base:
main← Head:fix/notes-missing-db-param📝 Commits (1)
19d5ad0fix: add missing db parameter to filter_allowed_access_grants in update_note_access_by_id📊 Changes
1 file changed (+1 additions, -0 deletions)
View changed files
📝
backend/open_webui/routers/notes.py(+1 -0)📄 Description
Description
In
update_note_access_by_id(), the call tofilter_allowed_access_grants()at line 345 is missing thedb=dbparameter. The same function is called correctly withdb=dbinupdate_note_by_id()at line 281.filter_allowed_access_grants()acceptsdb: Session | None = Noneand uses it for database operations when filtering access grants. Without it, the function may fail to properly validate group-based access grants that require database lookups.Changes
Add the missing
db=dbparameter to thefilter_allowed_access_grants()call inupdate_note_access_by_id(), matching the pattern already used inupdate_note_by_id().🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.