[PR #22398] [CLOSED] fix: add missing has_access import in tools.py #65512

Closed
opened 2026-05-06 11:21:57 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/22398
Author: @Tattooed-Geek
Created: 3/8/2026
Status: Closed

Base: devHead: fix-22393-has-access-import


📝 Commits (1)

  • d780ab6 fix: 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

  • Target branch: This PR targets the dev branch.
  • Description: Fix for missing import causing NameError.
  • Changelog: Added below.
  • Testing: Verified the import resolves the NameError.
  • 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


🔄 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>
GiteaMirror added the pull-request label 2026-05-06 11:21:57 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#65512