open-webui/backend/open_webui/models
Classic298 1f059fe730
feat: Prompts Atomic PR of #20243 (#20368)
* feat: Add read-only access support for Prompts

- Backend: Add write_access field to PromptAccessResponse
- Backend: Update /prompts/list to return prompts with write_access
- Frontend: Display Read Only badge in Prompts list
- Frontend: Disable inputs and save button when no write access

* feat: Add read-only visual indicators for Prompts workspace

* fix: Return write_access from getPromptByCommand endpoint

- Backend returns write_access directly in response
- Frontend extracts write_access from getPromptByCommand response
- Remove inefficient getPromptList call in edit page

* fix: Align Read Only badge to right in Prompts.svelte

- Title and command stay on left
- Badge pushed to right by justify-between

* fix: Use PromptAccessResponse in get_prompt_by_command endpoint

fix: Use PromptAccessResponse in get_prompt_by_command endpoint

- Return PromptAccessResponse Pydantic model instead of raw dict
- Properly type the response with response_model
2026-01-05 04:36:13 +04:00
..
auths.py refac/enh: db session sharing 2025-12-28 22:00:44 +04:00
channels.py refac 2026-01-01 02:23:42 +04:00
chats.py refac 2025-12-31 20:23:32 +04:00
feedbacks.py refac/enh: db session sharing 2025-12-28 22:00:44 +04:00
files.py refac 2025-12-28 22:26:35 +04:00
folders.py refac/enh: db session sharing 2025-12-28 22:00:44 +04:00
functions.py refac/enh: db session sharing 2025-12-28 22:00:44 +04:00
groups.py refac/enh: db session sharing 2025-12-28 22:00:44 +04:00
knowledge.py fix: resolve undefined knowledge base name in file reference tooltip (#20333) 2026-01-03 18:13:19 +04:00
memories.py refac/enh: db session sharing 2025-12-28 22:00:44 +04:00
messages.py refac/fix: reply to message recursion issue 2026-01-01 03:10:09 +04:00
models.py refac/enh: db session sharing 2025-12-28 22:00:44 +04:00
notes.py refac 2025-12-29 00:55:53 +04:00
oauth_sessions.py refac/enh: db session sharing 2025-12-28 22:00:44 +04:00
prompts.py feat: Prompts Atomic PR of #20243 (#20368) 2026-01-05 04:36:13 +04:00
tags.py refac/enh: db session sharing 2025-12-28 22:00:44 +04:00
tools.py refac/enh: db session sharing 2025-12-28 22:00:44 +04:00
users.py fix: prevent update_user_settings_by_id crash when user is None (#20278) 2025-12-31 02:30:31 -05:00