mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 10:58:17 -05:00
[PR #17410] [CLOSED] feat: Private sharing permissions for Workspace entities #63274
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/17410
Author: @Simon-Stone
Created: 9/12/2025
Status: ❌ Closed
Base:
dev← Head:workspace-private-sharing-permissions📝 Commits (2)
874fa58adds private sharing toggles97ce48donly show groups that allow private sharing in access control dropdown.📊 Changes
14 files changed (+156 additions, -24 deletions)
View changed files
📝
src/lib/components/AddServerModal.svelte(+9 -2)📝
src/lib/components/admin/Settings/Evaluations/ArenaModelModal.svelte(+9 -2)📝
src/lib/components/admin/Users/Groups.svelte(+6 -1)📝
src/lib/components/admin/Users/Groups/EditGroupModal.svelte(+1 -1)📝
src/lib/components/admin/Users/Groups/Permissions.svelte(+53 -13)📝
src/lib/components/layout/Sidebar/ChannelModal.svelte(+10 -1)📝
src/lib/components/notes/NoteEditor.svelte(+8 -0)📝
src/lib/components/workspace/Knowledge/CreateKnowledgeBase.svelte(+12 -1)📝
src/lib/components/workspace/Knowledge/KnowledgeBase.svelte(+10 -0)📝
src/lib/components/workspace/Models/ModelEditor.svelte(+10 -0)📝
src/lib/components/workspace/Prompts/PromptEditor.svelte(+9 -0)📝
src/lib/components/workspace/Tools/ToolkitEditor.svelte(+14 -1)📝
src/lib/components/workspace/common/AccessControl.svelte(+3 -1)📝
src/lib/components/workspace/common/AccessControlModal.svelte(+2 -1)📄 Description
Description
This PR introduces permissions for "Private Sharing" of Workspace entities. If Private Sharing is allowed for a Group, a member of that Group can share their creations with this Group. "Private Sharing" can be toggled independently for each Workspace component.
Documentation
Documentation has not yet been updated.
Dependencies
This PR introduces no new external dependencies.
Testing
I have not written any tests but have validated the intended behavior manually.
Code review
I have self-reviewed my code, and tried to adhere to existing style and coding standards
Changelog Entry
Description
This PR addresses the points mentioned in discussion #15100 by introducing the concept of "Private Sharing" permissions: A Group now has an additional set of permissions that govern whether members of this Group can share Workspace creations with the Group privately.
With this feature, the following scenarios can be avoided by deactivating private sharing permissions (from the discussion linked above):
Added
Changed
allowedPrivatetoAccessControl: This array holds the IDs of all groups that should appear in the group selector when sharing is set to Private.AccessControlModal(a little bit of prop drilling, but follows existing patterns)allowedPrivatein all components that use anAccessControlorAccessControlModal:Screenshots or Videos
The new options in the Permissions dialog:
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.