0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-08 17:53:55 +08:00
discourse/plugins/discourse-calendar/lib/discourse_post_event
Chris Alberti 6e5418453b
SECURITY: Remove stale invitee access for users removed from invited groups on private events [backport 2026.1] (#42229)
Backport of #42187 to release/2026.1.

Manual backport required since livestream wasn't yet moved into
discourse-calendar at this time so related changes were removed, and a
couple other fixes were (cleanly) cherry-picked to support the backport:
- #37662 and #37663 
   InviteesController bug fixes
- #38023 
Moves InivteesController logic into Services and adds additional
security checks as policies
- #40487 
Stops memoizing can_act_on_discourse_post_event? so we don't fall back
to a cached value

---

## Summary

Correctly restrict private calendar event access to current group
members. The patch replaces stale invitee-row authorization with active
invited-group membership checks across event detail serialization,
attendance searches, RSVP mutations, and livestream chat metadata, and
prunes stale invitee records when a user is removed from a group.

## Source

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

Co-authored-by: discourse-patch-triage
<272280883+discourse-patch-triage[bot]@users.noreply.github.com>

---------

Co-authored-by: Joffrey JAFFEUX <j.jaffeux@gmail.com>
Co-authored-by: Renato Atilio <renato@discourse.org>
2026-08-03 10:37:47 -05:00
..
engine.rb
event_finder.rb SECURITY: Remove stale invitee access for users removed from invited groups on private events [backport 2026.1] (#42229) 2026-08-03 10:37:47 -05:00
event_parser.rb FEATURE: introduce max attendees for events (#34313) 2025-09-01 22:56:19 +02:00
event_validator.rb
export_csv_controller_extension.rb
export_csv_file_extension.rb
post_extension.rb
rrule_configurator.rb FIX: removes support for include_expired param (#34582) 2025-08-28 14:37:45 +02:00
rrule_generator.rb FIX: maintain wall clock time between DST transitions (#35833) 2025-11-07 13:25:56 +01:00