[PR #22424] [CLOSED] Fix: NameError - has_access not defined in tools.py #49729

Closed
opened 2026-04-30 02:02:25 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

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

Base: devHead: fix/has-access-import


📝 Commits (1)

  • 6d63ec7 Fix: 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

  • 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>
GiteaMirror added the pull-request label 2026-04-30 02:02:25 -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#49729