mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-11 10:34:13 -05:00
[PR #24521] [MERGED] fix: require write permission for pin_channel_message on standard channels #115014
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/24521
Author: @Classic298
Created: 5/9/2026
Status: ✅ Merged
Merged: 5/10/2026
Merged by: @tjbck
Base:
dev← Head:fix/channels-pin-write-permission📝 Commits (1)
184d2a9fix: require write permission for pin_channel_message on standard channels📊 Changes
1 file changed (+2 additions, -1 deletions)
View changed files
📝
backend/open_webui/routers/channels.py(+2 -1)📄 Description
pin_channel_message(channels.py:1242) checkedpermission='read'on the standard-channel branch before mutatingis_pinned/pinned_by/pinned_atviaMessages.update_is_pinned_by_id. Pin/unpin is a write operation; gating it on read access let any user with read-only channel access pin or unpin any message in the channel, including admin posts.One-character fix: change
permission='read'topermission='write'.Contributor License Agreement
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.