mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-16 06:03:26 -05:00
[PR #22700] [CLOSED] fix: add missing has_public_read_access_grant import in notes.py #81692
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/22700
Author: @mvanhorn
Created: 3/15/2026
Status: ❌ Closed
Base:
main← Head:osc/22680-notes-missing-import📝 Commits (1)
4b0a750fix: add missing has_public_read_access_grant import in notes.py📊 Changes
1 file changed (+1 additions, -1 deletions)
View changed files
📝
backend/open_webui/routers/notes.py(+1 -1)📄 Description
Summary
Adds the missing
has_public_read_access_grantimport tonotes.py. The function is called at line 239 but was never imported, causing aNameErrorat runtime.Changes
Added
has_public_read_access_grantto the existing import fromopen_webui.models.access_grantson line 31. This matches the import pattern already used inchannels.py:39.Testing
models/access_grants.py:193channels.pyuses the same import pattern successfullyFixes #22680
This contribution was developed with AI assistance (Claude Code).
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.