[PR #16044] [CLOSED] FIX: User WorkSpace Create Tool Error #62870

Closed
opened 2026-05-06 07:18:59 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/16044
Author: @rgaricano
Created: 7/26/2025
Status: Closed

Base: devHead: dev-FIX_UsersToolsCreate


📝 Commits (2)

  • ed6d77b FIX: User WorkSpace Create Tool Error
  • 3b72640 FIX: User WorkSpace Create Tool Error

📊 Changes

2 files changed (+2 additions, -2 deletions)

View changed files

📝 backend/open_webui/routers/utils.py (+1 -1)
📝 src/lib/components/common/CodeEditor.svelte (+1 -1)

📄 Description

Description

FIX: User WorkSpace Create Tool Error

Changed

  • backend/open_webui/routers/utils.py
    Permission changed to allow verified users to format code; there are more specific permission checks later, in formatPythonCodeHandler.

  • src/lib/components/common/CodeEditor.svelte
    Added permission for the user with code_interpreter permission.
    The tools permission could also be used, but I assume the code_interpreter permission is more appropriate for that role; if the user doesn't have code_interpreter permission, they shouldn't have to format the code either.
    However, I'm not sure; both permissions could also be used.

Security

  • REQUIRES REVIEW ON APPLIED PERMISSION.

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/16044 **Author:** [@rgaricano](https://github.com/rgaricano) **Created:** 7/26/2025 **Status:** ❌ Closed **Base:** `dev` ← **Head:** `dev-FIX_UsersToolsCreate` --- ### 📝 Commits (2) - [`ed6d77b`](https://github.com/open-webui/open-webui/commit/ed6d77b1f78a3d49c63a2c9012b1542bc1d07996) FIX: User WorkSpace Create Tool Error - [`3b72640`](https://github.com/open-webui/open-webui/commit/3b726407002bf095e26a9f6a74efadd057cea943) FIX: User WorkSpace Create Tool Error ### 📊 Changes **2 files changed** (+2 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `backend/open_webui/routers/utils.py` (+1 -1) 📝 `src/lib/components/common/CodeEditor.svelte` (+1 -1) </details> ### 📄 Description ### Description ### FIX: User WorkSpace Create Tool Error - When Creating new tool in user workspace arise an error due to lack of permission when code is formatted. - It solve https://github.com/open-webui/open-webui/issues/16037 ### Changed - _backend/open_webui/routers/utils.py_ Permission changed to allow verified users to format code; there are more specific permission checks later, in formatPythonCodeHandler. - _src/lib/components/common/CodeEditor.svelte_ Added permission for the user with code_interpreter permission. The tools permission could also be used, but I assume the code_interpreter permission is more appropriate for that role; if the user doesn't have code_interpreter permission, they shouldn't have to format the code either. However, I'm not sure; both permissions could also be used. ### Security - **REQUIRES REVIEW ON APPLIED PERMISSION.** __________ ### Contributor License Agreement By submitting this pull request, I confirm that I have read and fully agree to the [Contributor License Agreement (CLA)](/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 07:18:59 -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#62870