0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-06 13:08:40 +08:00
discourse/plugins/chat/spec/services
Isaac Janzen 4ce605eb87
FIX: Respect read-only permissions for chat message interactions (#42363)
## Summary

Chat message buttons and other interactive actions are write operations,
but users with read-only category access could previously trigger them.
This change updates `Chat::CreateMessageInteraction` in
`plugins/chat/app/services/chat/create_message_interaction.rb:53` to
require permission to join the channel rather than permission to preview
it. Attempts from read-only users now return a not-found response
without creating a `Chat::MessageInteraction`. Request coverage has been
added for read-only category channels.

## Source

- Patch Triage: https://patch.discourse.org/patch-triage/1324

Co-authored-by: discourse-patch-triage
<272280883+discourse-patch-triage[bot]@users.noreply.github.com>
2026-08-05 13:07:35 -05:00
..
actions DEV: Replace Ruby numbered parameters by it where applicable (#37810) 2026-02-13 13:59:07 +01:00
chat FIX: Respect read-only permissions for chat message interactions (#42363) 2026-08-05 13:07:35 -05:00
video_conversion DEV: Add video conversion support for chat messages (#36275) 2025-12-01 12:34:56 -07:00
hashtag_autocomplete_service_spec.rb DEV: Chat hashtag test (#25638) 2024-02-12 12:32:52 +10:00