mirror of
https://github.com/discourse/discourse.git
synced 2026-08-04 10:39:43 +08:00
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. |
||
|---|---|---|
| .. | ||
| check_policy.rb | ||