mirror of
https://github.com/discourse/discourse.git
synced 2024-12-17 10:03:19 +08:00
8c2e27790c
The bug was mentioned here: https://meta.discourse.org/t/poll-name/136436 I added specs to cover existing behaviour and refactored can_see_results method. Guard condition should apply only if the poll result setting is set to `staff_only`. In other cases, user can see results when the poll result setting is set to `always` or user voted or poll is closed. |
||
---|---|---|
.. | ||
discourse-details | ||
discourse-internet-explorer | ||
discourse-local-dates | ||
discourse-narrative-bot | ||
discourse-presence | ||
lazy-yt | ||
poll |