mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-15 21:19:39 -05:00
[PR #20243] [CLOSED] feat: Show Prompts/Models/Knowledge/Tools in Workspace when Read only - add proper visual cues for read only access #96556
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/20243
Author: @Classic298
Created: 12/29/2025
Status: ❌ Closed
Base:
dev← Head:read📝 Commits (7)
7fbeaf4inita12b79afixda6b03bfixcaa97c1code quality91f3a09fix1af6c56styling8b2f46cstyling📊 Changes
18 files changed (+348 additions, -144 deletions)
View changed files
📝
backend/open_webui/models/models.py(+10 -1)📝
backend/open_webui/models/prompts.py(+4 -0)📝
backend/open_webui/models/tools.py(+4 -0)📝
backend/open_webui/routers/knowledge.py(+6 -3)📝
backend/open_webui/routers/models.py(+19 -2)📝
backend/open_webui/routers/prompts.py(+14 -3)📝
backend/open_webui/routers/tools.py(+15 -3)📝
src/lib/components/common/CodeEditor.svelte(+8 -1)📝
src/lib/components/workspace/Knowledge/KnowledgeBase.svelte(+5 -5)📝
src/lib/components/workspace/Models.svelte(+15 -8)📝
src/lib/components/workspace/Models/ModelEditor.svelte(+47 -31)📝
src/lib/components/workspace/Prompts.svelte(+5 -0)📝
src/lib/components/workspace/Prompts/PromptEditor.svelte(+47 -31)📝
src/lib/components/workspace/Tools.svelte(+76 -32)📝
src/lib/components/workspace/Tools/ToolkitEditor.svelte(+40 -20)📝
src/routes/(app)/workspace/models/edit/+page.svelte(+16 -1)📝
src/routes/(app)/workspace/prompts/edit/+page.svelte(+9 -2)📝
src/routes/(app)/workspace/tools/edit/+page.svelte(+8 -1)📄 Description
Read-Only visual indicators and access control enforcement for Workspace items
TL;DR: What does this PR do?
This PR enhances the UI/UX for workspace items (Prompts, Tools, Models, Knowledge Bases) by providing clear visual cues for read-only access and enforcing frontend restrictions.
Changes
Frontend
write_accessflag.Backend
write_accessboolean.write_accessstatus based on user role and permissions.Addresses:
https://github.com/open-webui/open-webui/discussions/15315
https://github.com/open-webui/open-webui/issues/20048
https://github.com/open-webui/open-webui/discussions/19664
https://github.com/open-webui/open-webui/issues/19660
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.