discourse/plugins
Krzysztof Kotlarek 8c2e27790c
FIX: everyone can see poll results when on_vote and closed (#8613)
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.
2019-12-24 08:04:35 +11:00
..
discourse-details Update translations 2019-12-10 13:10:55 +01:00
discourse-internet-explorer FIX: Include `Symbol` polyfill for IE11 2019-12-18 15:58:36 -05:00
discourse-local-dates Update translations 2019-12-19 12:31:52 -05:00
discourse-narrative-bot Update translations 2019-12-19 12:31:52 -05:00
discourse-presence DEV: s/\$redis/Discourse\.redis (#8431) 2019-12-03 10:05:53 +01:00
lazy-yt DEV: Run prettier 2019-11-12 12:07:19 +01:00
poll FIX: everyone can see poll results when on_vote and closed (#8613) 2019-12-24 08:04:35 +11:00