[PR #17801] [MERGED] feat: add permission toggle for public sharing of notes #24554

Closed
opened 2026-04-20 05:27:33 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/17801
Author: @Classic298
Created: 9/26/2025
Status: Merged
Merged: 9/26/2025
Merged by: @tjbck

Base: devHead: feature/notes-public-sharing-permission


📝 Commits (1)

  • 41e4e73 feat: add permission toggle for public sharing of notes

📊 Changes

4 files changed (+28 additions, -1 deletions)

View changed files

📝 backend/open_webui/config.py (+6 -0)
📝 backend/open_webui/routers/notes.py (+12 -0)
📝 backend/open_webui/routers/users.py (+1 -0)
📝 src/lib/components/admin/Users/Groups/Permissions.svelte (+9 -1)

📄 Description

This commit introduces a new permission toggle that allows administrators to control whether users can publicly share their notes.

  • Adds a new environment variable USER_PERMISSIONS_NOTES_ALLOW_PUBLIC_SHARING to control the default setting.
  • Adds a public_notes permission to the sharing section of the user permissions.
  • Adds a toggle switch to the admin panel for managing this permission.
  • Implements backend logic to enforce the permission when a user attempts to share a note publicly.

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/17801 **Author:** [@Classic298](https://github.com/Classic298) **Created:** 9/26/2025 **Status:** ✅ Merged **Merged:** 9/26/2025 **Merged by:** [@tjbck](https://github.com/tjbck) **Base:** `dev` ← **Head:** `feature/notes-public-sharing-permission` --- ### 📝 Commits (1) - [`41e4e73`](https://github.com/open-webui/open-webui/commit/41e4e7395c1ba9ae0f4098bca72e88ced6c0b0e1) feat: add permission toggle for public sharing of notes ### 📊 Changes **4 files changed** (+28 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `backend/open_webui/config.py` (+6 -0) 📝 `backend/open_webui/routers/notes.py` (+12 -0) 📝 `backend/open_webui/routers/users.py` (+1 -0) 📝 `src/lib/components/admin/Users/Groups/Permissions.svelte` (+9 -1) </details> ### 📄 Description This commit introduces a new permission toggle that allows administrators to control whether users can publicly share their notes. - Adds a new environment variable `USER_PERMISSIONS_NOTES_ALLOW_PUBLIC_SHARING` to control the default setting. - Adds a `public_notes` permission to the `sharing` section of the user permissions. - Adds a toggle switch to the admin panel for managing this permission. - Implements backend logic to enforce the permission when a user attempts to share a note publicly. ### Contributor License Agreement By submitting this pull request, I confirm that I have read and fully agree to the [Contributor License Agreement (CLA)](https://github.com/open-webui/open-webui/blob/main/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-04-20 05:27:33 -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#24554