0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-04 10:39:43 +08:00
discourse/plugins/discourse-policy/jobs/scheduled
Alan Guo Xiang Tan 22dfc1b5a8
FIX: Restrict policy reminder notifications by post visibility (#40055)
Policy reminder jobs could create `topic_reminder` notifications for
users who were in the policy group but could not see the policy post.
That allowed restricted policy topics to be referenced by reminder
notifications even though the topic itself remained private.

This commit fixes `Jobs::DiscoursePolicy::CheckPolicy` to check post
visibility for each missing policy user before replacing the reminder
notification. Users who cannot see the post are skipped, while visible
policy users continue to receive the reminder.
2026-05-15 12:46:52 +08:00
..
check_policy.rb FIX: Restrict policy reminder notifications by post visibility (#40055) 2026-05-15 12:46:52 +08:00