mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 10:58:17 -05:00
[PR #22395] [CLOSED] fix: add missing has_access import in tools.py #42283
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/22395
Author: @Tattooed-Geek
Created: 3/8/2026
Status: ❌ Closed
Base:
main← Head:fix-22393-has-access-import📝 Commits (1)
7c266a0fix: add missing has_access import in tools.py📊 Changes
1 file changed (+1 additions, -1 deletions)
View changed files
📝
backend/open_webui/routers/tools.py(+1 -1)📄 Description
Summary
Fixes #22393
The
has_accessfunction was used inrouters/tools.pybut was not imported fromutils.access_control. This caused aNameError: name 'has_access' is not definedwhen the tools router was accessed.Changes
from utils.access_control import has_accessinbackend/open_webui/routers/tools.pyTesting
Fixes #22393
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.