mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 10:58:17 -05:00
[PR #8364] [CLOSED] feat: Add group permissions for making workspace features public #9004
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/8364
Author: @tarmst
Created: 1/6/2025
Status: ❌ Closed
Base:
dev← Head:toggle-option-make-models-knowledge-public📝 Commits (2)
496d860Add toggle options for visibility. Private visibility by defaultcf16185Remove unnecessary module declaration📊 Changes
8 files changed (+81 additions, -7 deletions)
View changed files
📝
backend/open_webui/routers/users.py(+4 -0)📝
src/lib/components/admin/Users/Groups/Permissions.svelte(+33 -1)📝
src/lib/components/workspace/Knowledge/CreateKnowledgeBase.svelte(+2 -1)📝
src/lib/components/workspace/Models/ModelEditor.svelte(+2 -1)📝
src/lib/components/workspace/Prompts/PromptEditor.svelte(+2 -1)📝
src/lib/components/workspace/Tools/ToolkitEditor.svelte(+2 -1)📝
src/lib/components/workspace/common/AccessControl.svelte(+28 -2)📝
src/lib/types/index.ts(+8 -0)📄 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.
Associated discussion: https://github.com/open-webui/open-webui/discussions/8054
Before submitting, make sure you've checked the following:
devbranch.Changelog Entry
Description
Added additional permissions for groups in the workspace to prevent/allow specific groups to make models, prompts, knowledge & tools public. This change is brought about because for large scale deployments, having users with workspace access be able to make everything public will end up as a large source of clutter. Admins can always set things to public.
If a user is a part of any group with a matching "Public" permission, they can the respective model/prompt/knowledge/tool public.
Added
Changed
Screenshots or Videos
New permissions for groups:

As a user without permission, trying to make a model:

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.