mirror of
https://github.com/discourse/discourse.git
synced 2026-08-12 05:37:26 +08:00
Backport of #634 to release/2026.3. --- `ReviewableQueuedPostSerializer` unconditionally included `payload["raw_email"]` for posts that arrived via incoming email. Category moderation group members reaching the review queue could therefore read the full inbound email source without being in `view_raw_email_allowed_groups`. The serializer now redacts `raw_email` from the rendered payload unless the current user is in `view_raw_email_allowed_groups`, mirroring the existing check used by `Guardian#can_view_raw_email`. This commit also: - disables click on envelope when user has no raw email access to prevent a deceptive action - adds a new `guardian.can_view_raw_emails?` to avoid duplication of this specific logic https://github.com/discourse/discourse/security/advisories/GHSA-h2jr-whpx-6w63 |
||
|---|---|---|
| .. | ||
| asset-processor | ||
| custom-proxy | ||
| deprecation-silencer | ||
| discourse | ||
| discourse-i18n | ||
| discourse-markdown-it | ||
| discourse-plugins | ||
| discourse-types | ||
| ember-cli-progress-ci | ||
| pretty-text | ||
| .npmrc | ||
| polyfills.js | ||