discourse/plugins/poll
Blake Erickson 69498a58e9
FEATURE: Staff only poll results (#7984)
* FEATURE: Staff only poll results

These changes allow only staff to see the results of a poll.

Non-staff users will be shown a screen like this:

1b8bd76013.png

The "Votes are public" message has been removed from the info section,
and the button to show the votes has been replaced with a message
stating the results will only be shown to staff.

* Update PR based on feedback

* Update plugins/poll/app/models/poll.rb

make sure we return a boolean

Co-Authored-By: Régis Hanol <regis@hanol.fr>
2019-08-15 12:27:18 -06:00
..
app FEATURE: Staff only poll results (#7984) 2019-08-15 12:27:18 -06:00
assets FEATURE: Staff only poll results (#7984) 2019-08-15 12:27:18 -06:00
config FEATURE: Staff only poll results (#7984) 2019-08-15 12:27:18 -06:00
db FIX: replace model usage with SQL query 2019-08-13 18:32:24 +02:00
jobs/regular DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
lib DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
spec FIX: Store custom attributes that are needed by plugins in queuedpost payload (#8009) 2019-08-14 15:02:59 -03:00
test/javascripts FEATURE: Add a preview to the poll builder (#7988) 2019-08-13 09:49:40 -04:00
plugin.rb FIX: Store custom attributes that are needed by plugins in queuedpost payload (#8009) 2019-08-14 15:02:59 -03:00