mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-09 12:56:25 +08:00
## Summary - Adds a `guardian.can_see_topic?` check in `DiscoursePoll::Poll` to prevent users from interacting with polls on topics they can no longer access - Covers the case where a user loses group membership for a private category but could still toggle poll status via the API - Adds integration test verifying poll toggle is blocked after group removal --- **Security Advisory:** https://github.com/discourse/discourse/security/advisories/GHSA-wq58-pvf6-w4p8 |
||
|---|---|---|
| .. | ||
| poll_endpoints_spec.rb | ||
| post_mover_spec.rb | ||
| user_merger_spec.rb | ||