discourse/plugins/poll
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
..
app FIX: everyone can see poll results when on_vote and closed (#8613) 2019-12-24 08:04:35 +11:00
assets FIX: Remove 'staff_only' results option for non-staff (#8565) 2019-12-17 13:43:15 -08:00
config Update translations 2019-12-19 12:31:52 -05:00
db FEATURE: Pie chart option for poll results (#8352) 2019-11-25 11:51:01 -06:00
jobs/regular DEV: Upgrading Discourse to Zeitwerk (#8098) 2019-10-02 14:01:53 +10:00
lib DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
spec FIX: everyone can see poll results when on_vote and closed (#8613) 2019-12-24 08:04:35 +11:00
test/javascripts FIX: Remove 'staff_only' results option for non-staff (#8565) 2019-12-17 13:43:15 -08:00
plugin.rb FEATURE: Pie chart option for poll results (#8352) 2019-11-25 11:51:01 -06:00