Add missing has_access import in routers/tools.py - non-admin users were getting 500 error when accessing /api/v1/tools/
Changes
Added has_access to the import statement in tools.py
Testing
Tested with non-admin user
Contributor License Agreement
By submitting this pull request, I confirm that I have read and fully agree to the Contributor License Agreement (CLA), and I am providing my contributions under its terms.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
## 📋 Pull Request Information
**Original PR:** https://github.com/open-webui/open-webui/pull/22424
**Author:** [@gambletan](https://github.com/gambletan)
**Created:** 3/8/2026
**Status:** ❌ Closed
**Base:** `dev` ← **Head:** `fix/has-access-import`
---
### 📝 Commits (1)
- [`6d63ec7`](https://github.com/open-webui/open-webui/commit/6d63ec7bd44825fe51ab0d730a4fadf75baf368c) Fix: Import missing has_access function in tools.py
### 📊 Changes
**1 file changed** (+1 additions, -1 deletions)
<details>
<summary>View changed files</summary>
📝 `backend/open_webui/routers/tools.py` (+1 -1)
</details>
### 📄 Description
Fixes #22393
## Summary
Add missing has_access import in routers/tools.py - non-admin users were getting 500 error when accessing /api/v1/tools/
## Changes
- Added has_access to the import statement in tools.py
## Testing
- [x] Tested with non-admin user
### Contributor License Agreement
- [x] By submitting this pull request, I confirm that I have read and fully agree to the Contributor License Agreement (CLA), and I am providing my contributions under its terms.
---
<sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/22424
Author: @gambletan
Created: 3/8/2026
Status: ❌ Closed
Base:
dev← Head:fix/has-access-import📝 Commits (1)
6d63ec7Fix: Import missing has_access function in tools.py📊 Changes
1 file changed (+1 additions, -1 deletions)
View changed files
📝
backend/open_webui/routers/tools.py(+1 -1)📄 Description
Fixes #22393
Summary
Add missing has_access import in routers/tools.py - non-admin users were getting 500 error when accessing /api/v1/tools/
Changes
Testing
Contributor License Agreement
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.