mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 10:58:17 -05:00
[GH-ISSUE #22393] issue: NameError: name 'has_access' is not defined in routers/tools.py — Tools not visible to non-admin users (500 on GET /api/v1/tools/) #58378
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?
Originally created by @nekomiya-hinata on GitHub (Mar 8, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/22393
Check Existing Issues
Installation Method
Docker
Open WebUI Version
v0.8.9
Ollama Version (if applicable)
No response
Operating System
Ubuntu 22.04
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
Non-admin users should be able to see and use tools they have been granted access to, just as admin users can. The GET /api/v1/tools/ endpoint should return the tool list successfully for all authenticated users.
Actual Behavior
When a non-admin user logs in, the GET /api/v1/tools/ endpoint returns HTTP 500. No tools are displayed in the chat interface for non-admin users. Admin users are completely unaffected — tools load and display correctly when logged in as an admin.
The error is:
Steps to Reproduce
Logs & Screenshots
Additional Information
No response
@nekomiya-hinata commented on GitHub (Mar 8, 2026):
Additional note: After rolling back to the previous version v0.8.8, the issue is no longer present — tools load correctly for non-admin users. This confirms the regression was introduced in v0.8.9.
@Classic298 commented on GitHub (Mar 8, 2026):
67e26fd3af