mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 19:08:59 -05:00
[PR #17543] [CLOSED] feat: only allow users with Write permission or admin to post/edit/delete Channel messages #63320
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/17543
Author: @nguyen-trantrung
Created: 9/18/2025
Status: ❌ Closed
Base:
dev← Head:feat/channel-acl📝 Commits (5)
3d4a8e8feat: only allow users with Write permission or admin to post/edit/delete messages in channels0dc36a9feat: disabled MessageInput, edit and delete for non-admin and non-write users in channelsa0e792bfeat: Allow changing between Read/Write for accessRoles of user group for in ChannelModal1401690Merge changes from dev68c3e00Merge branch 'dev' into feat/channel-acl📊 Changes
9 files changed (+335 additions, -15 deletions)
View changed files
📝
backend/open_webui/routers/channels.py(+11 -4)📝
src/lib/components/channel/Channel.svelte(+30 -1)📝
src/lib/components/channel/MessageInput.svelte(+13 -3)📝
src/lib/components/channel/Messages.svelte(+3 -1)📝
src/lib/components/channel/Messages/Message.svelte(+3 -2)📝
src/lib/components/channel/Thread.svelte(+7 -3)📝
src/lib/components/layout/Sidebar/ChannelModal.svelte(+1 -1)➕
src/lib/utils/index.test.ts(+215 -0)📝
src/lib/utils/index.ts(+52 -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.
Before submitting, make sure you've checked the following:
devbranch.checkAccessutil, anything else are manually verifiedChangelog Entry
Description
Added
checkAccessinsrc/lib/utils/index.tsand tests insrc/lib/utils/index.test.tsChanged
routes/channels.pyto only allow users with Write to post/delete/edit messagesDeprecated
Removed
Fixed
Security
routes/channels.pyto only allow users with Write to post/delete/edit messagesBreaking Changes
Additional Information
Screenshots or Videos
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.