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/22398
**Author:** [@Tattooed-Geek](https://github.com/Tattooed-Geek)
**Created:** 3/8/2026
**Status:** ❌ Closed
**Base:** `dev` ← **Head:** `fix-22393-has-access-import`
---
### 📝 Commits (1)
- [`d780ab6`](https://github.com/open-webui/open-webui/commit/d780ab6cdf2b8cccefcfb26dfc3d08456a883692) fix: add missing has_access import 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
# Pull Request Checklist
- [x] **Target branch:** This PR targets the `dev` branch.
- [x] **Description:** Fix for missing import causing NameError.
- [x] **Changelog:** Added below.
- [x] **Testing:** Verified the import resolves the NameError.
- [x] **Code review:** Self-reviewed.
# Changelog Entry
### Description
Fixes a NameError caused by a missing import of `has_access` function in the tools router.
### Fixed
- Added missing `from utils.access_control import has_access` import in `backend/open_webui/routers/tools.py`
### Additional Information
Fixes #22393
### Contributor License Agreement
- [x] By submitting this pull request, I confirm that I have read and fully agree to the [Contributor License Agreement (CLA)](https://github.com/open-webui/open-webui/blob/main/CONTRIBUTOR_LICENSE_AGREEMENT), 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/22398
Author: @Tattooed-Geek
Created: 3/8/2026
Status: ❌ Closed
Base:
dev← Head:fix-22393-has-access-import📝 Commits (1)
d780ab6fix: 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
Pull Request Checklist
devbranch.Changelog Entry
Description
Fixes a NameError caused by a missing import of
has_accessfunction in the tools router.Fixed
from utils.access_control import has_accessimport inbackend/open_webui/routers/tools.pyAdditional Information
Fixes #22393
Contributor License Agreement
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.