[PR #14843] [CLOSED] feat/breaking: Allow custom system prompt permission #10411

Closed
opened 2025-11-11 19:04:06 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/14843
Author: @Classic298
Created: 6/10/2025
Status: Closed

Base: devHead: allow-custom-system-prompt-permission


📝 Commits (6)

  • 181d156 Feat allow custom system prompt (#8)
  • 304d3ff revert styling changes
  • 760c6f7 adjusting sidebar chat controls for custom system prompt
  • 12f25b7 fix
  • 6325613 Merge pull request #14675 from open-webui/dev
  • d7fdcd3 Merge branch 'open-webui:main' into allow-custom-system-prompt-permission

📊 Changes

6 files changed (+24 additions, -4 deletions)

View changed files

📝 backend/open_webui/config.py (+5 -0)
📝 backend/open_webui/routers/users.py (+1 -0)
📝 src/lib/components/admin/Users/Groups/EditGroupModal.svelte (+2 -1)
📝 src/lib/components/admin/Users/Groups/Permissions.svelte (+10 -1)
📝 src/lib/components/chat/Controls/Controls.svelte (+5 -1)
📝 src/lib/components/chat/Settings/General.svelte (+1 -1)

📄 Description


Pull Request Checklist

Note to first-time contributors: Please open a discussion post in Discussions and describe your changes before submitting a pull request.

Before submitting, make sure you've checked the following:

  • Target branch: Please verify that the pull request targets the dev branch.
  • Description: Provide a concise description of the changes made in this pull request.
  • Changelog: Ensure a changelog entry following the format of Keep a Changelog is added at the bottom of the PR description.
  • Documentation: Have you updated relevant documentation Open WebUI Docs, or other documentation sources?
  • Dependencies: Are there any new dependencies? Have you updated the dependency versions in the documentation?
  • Testing: Have you written and run sufficient tests to validate the changes?
  • Code review: Have you performed a self-review of your code, addressing any coding standard issues and ensuring adherence to the project's coding standards?
  • Prefix: To clearly categorize this pull request, prefix the pull request title using one of the following:
    • BREAKING CHANGE: Significant changes that may affect compatibility
    • feat: Introduces a new feature or enhancement to the codebase

Changelog Entry

Description

  • Adds a new permission toggle to specifically allow or disallow the creation of a custom system prompt in the user-settings modal.
  • This is needed because previously, the Chat Controls permission, if disallowed, also disallowed adding a custom system prompt.
  • With this PR, the permissions are now more nuanced and the custom system prompt can be toggled independently of the advanced chat controls.

image

Added

Breaking Changes

  • BREAKING CHANGE: Anyone who previously relied on Allow Chat Controls permission to hide the custom system prompt in the user-settings must be aware of this change, as now they also need to disable this new permission toggle to disallow creation of custom system prompts in the user-setting modal!

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/14843 **Author:** [@Classic298](https://github.com/Classic298) **Created:** 6/10/2025 **Status:** ❌ Closed **Base:** `dev` ← **Head:** `allow-custom-system-prompt-permission` --- ### 📝 Commits (6) - [`181d156`](https://github.com/open-webui/open-webui/commit/181d156f56bed597f037addbe3937c3c6b032160) Feat allow custom system prompt (#8) - [`304d3ff`](https://github.com/open-webui/open-webui/commit/304d3ffe1d86175f2701891dfbb8b2fb89a843f1) revert styling changes - [`760c6f7`](https://github.com/open-webui/open-webui/commit/760c6f75d436c4a3aa302fe28028fef21533b95d) adjusting sidebar chat controls for custom system prompt - [`12f25b7`](https://github.com/open-webui/open-webui/commit/12f25b7f1a1a3d81cab4d393b6f4b52842159a43) fix - [`6325613`](https://github.com/open-webui/open-webui/commit/63256136ef8322210c01c2bb322097d1ccfb8c6f) Merge pull request #14675 from open-webui/dev - [`d7fdcd3`](https://github.com/open-webui/open-webui/commit/d7fdcd320d3366541dc242fe32cf1174688d8230) Merge branch 'open-webui:main' into allow-custom-system-prompt-permission ### 📊 Changes **6 files changed** (+24 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `backend/open_webui/config.py` (+5 -0) 📝 `backend/open_webui/routers/users.py` (+1 -0) 📝 `src/lib/components/admin/Users/Groups/EditGroupModal.svelte` (+2 -1) 📝 `src/lib/components/admin/Users/Groups/Permissions.svelte` (+10 -1) 📝 `src/lib/components/chat/Controls/Controls.svelte` (+5 -1) 📝 `src/lib/components/chat/Settings/General.svelte` (+1 -1) </details> ### 📄 Description --------- # Pull Request Checklist ### Note to first-time contributors: Please open a discussion post in [Discussions](https://github.com/open-webui/open-webui/discussions) and describe your changes before submitting a pull request. **Before submitting, make sure you've checked the following:** - [X] **Target branch:** Please verify that the pull request targets the `dev` branch. - [X] **Description:** Provide a concise description of the changes made in this pull request. - [X] **Changelog:** Ensure a changelog entry following the format of [Keep a Changelog](https://keepachangelog.com/) is added at the bottom of the PR description. - [X] **Documentation:** Have you updated relevant documentation [Open WebUI Docs](https://github.com/open-webui/docs), or other documentation sources? - https://github.com/open-webui/docs/pull/567 - [ ] **Dependencies:** Are there any new dependencies? Have you updated the dependency versions in the documentation? - [X] **Testing:** Have you written and run sufficient tests to validate the changes? - [X] **Code review:** Have you performed a self-review of your code, addressing any coding standard issues and ensuring adherence to the project's coding standards? - [X] **Prefix:** To clearly categorize this pull request, prefix the pull request title using one of the following: - **BREAKING CHANGE**: Significant changes that may affect compatibility - **feat**: Introduces a new feature or enhancement to the codebase # Changelog Entry ### Description - Adds a new permission toggle to specifically allow or disallow the creation of a custom system prompt in the user-settings modal. - This is needed because previously, the Chat Controls permission, if disallowed, also disallowed adding a custom system prompt. - With this PR, the permissions are now more nuanced and the custom system prompt can be toggled independently of the advanced chat controls. ![image](https://github.com/user-attachments/assets/590c9639-490a-4769-b069-2eb70d320652) ### Added - Added new permission and env var for this new permission setting. - https://github.com/open-webui/docs/pull/567 ### Breaking Changes - **BREAKING CHANGE**: Anyone who previously relied on `Allow Chat Controls` permission to hide the custom system prompt in the user-settings must be aware of this change, as now they also need to disable this new permission toggle to disallow creation of custom system prompts in the user-setting modal! --- ### 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 2025-11-11 19:04:06 -06: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#10411