0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-06 06:24:48 +08:00
discourse/plugins/chat
discoursebot bfc93106a0
SECURITY: Enforce recipient PM allowlists for existing direct chat channels [backport 2026.1] (#41926)
Backport of #41923 to release/2026.1.

---

## 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>

---------

Co-authored-by: Isaac Janzen <50783505+janzenisaac@users.noreply.github.com>
Co-authored-by: Isaac Janzen <isaac.janzen@discourse.org>
2026-07-22 12:12:08 -05:00
..
admin/assets/javascripts UX: add admin sidebar icons for preinstalled plugins (#36764) 2025-12-18 16:39:00 -05:00
app SECURITY: Enforce chat message length before cooking it [backport 2026.1] (#41753) 2026-07-16 11:10:40 +08:00
assets FIX: dynamic highlighting of self mentions (#37321) 2026-01-28 14:59:48 +04:00
config I18N: Update translations (#37916) 2026-02-25 09:47:58 -05:00
db DEV: remove chat channel icon upload id (#36693) 2025-12-16 16:00:56 +04:00
lib SECURITY: Enforce recipient PM allowlists for existing direct chat channels [backport 2026.1] (#41926) 2026-07-22 12:12:08 -05:00
public
spec SECURITY: Enforce recipient PM allowlists for existing direct chat channels [backport 2026.1] (#41926) 2026-07-22 12:12:08 -05:00
test/javascripts UX: Prioritize chat search results by relevance (#36959) 2026-01-06 08:57:08 +01:00
about.json DEV: Only load specific plugin bundles during qunit test (#33678) 2025-07-21 21:00:48 +01:00
package.json DEV: Overhaul typechecking configuration (#35794) 2025-11-12 12:54:34 +00:00
plugin.rb SECURITY: Enforce recipient PM allowlists for existing direct chat channels [backport 2026.1] (#41926) 2026-07-22 12:12:08 -05:00
README.md
tsconfig.json DEV: Overhaul typechecking configuration (#35794) 2025-11-12 12:54:34 +00:00

This plugin is still in active development and may change frequently

Documentation

The Discourse Chat plugin adds chat functionality to your Discourse so it can natively support both long-form and short-form communication needs of your online community.

For user documentation, see Discourse Chat.

For developer documentation, see Discourse Documentation.