mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 10:58:17 -05:00
[PR #22414] [CLOSED] fix: add missing has_access import in tools router #65527
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/22414
Author: @gambletan
Created: 3/8/2026
Status: ❌ Closed
Base:
dev← Head:fix/missing-has-access-import-dev📝 Commits (1)
a511949fix: add missing has_access import in tools router📊 Changes
1 file changed (+1 additions, -1 deletions)
View changed files
📝
backend/open_webui/routers/tools.py(+1 -1)📄 Description
Summary
has_accessimport fromopen_webui.utils.access_controlinbackend/open_webui/routers/tools.pyget_toolsendpoint raisesNameError: name 'has_access' is not definedfor all non-admin users, returning HTTP 500 and hiding all toolsFixes #22393
Test plan
By submitting this pull request, I agree to the Contributor License Agreement.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.