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/lib
Isaac Janzen 0f184c58e6
SECURITY: Enforce recipient PM allowlists for existing direct chat channels (#41923)
## Summary

Correctly enforce the PM allowlist preference
(`enable_allowed_pm_users`) when an excluded user attempts to send a
message in an existing one-to-one direct message channel. Previously,
the Guardian helper did not check the allowlist, allowing excluded users
to continue sending messages after the recipient enabled the
restriction. The fix integrates `UserCommScreener` into the recipient
authorization check, also preventing thread creation and updating user
card chat availability accordingly.

## Source

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

Co-authored-by: discourse-patch-triage
<272280883+discourse-patch-triage[bot]@users.noreply.github.com>
2026-07-22 12:11:42 -05:00
..
chat SECURITY: Enforce recipient PM allowlists for existing direct chat channels (#41923) 2026-07-22 12:11:42 -05:00
chat_sdk DEV: correctly handle contract error in chat sdk (#37446) 2026-02-02 12:14:52 +01:00
discourse_workflows/nodes FEATURE: schema based workflow (#41684) 2026-07-15 13:22:29 +02:00
site_setting_extension_spec.rb
statistics_spec.rb