Discourse poll - update

(Joffrey Jaffeux) #1


I submitted multiple commits today for the poll plugin, which will change the current behaviour a little bit. Previously poll_enabled was kind of misleading as it didn’t disable polls but only let staff create polls when disabled.

Poll plugin now has 2 settings for this :

  • poll_enabled => will totally disable polls and will un-cook polls when a post is rebaked
  • poll_minimum_trust_level_to_create => defines the minimum trust level to create polls

Staff will always be able to create polls regardless of trust level, if polls are enabled.

I also added multiple tests, please let me know if you see something not working.

(Jeff Atwood) #3

Staff can always bypass, so we don’t need a site setting for that — this particular setting should be removed.

(Joffrey Jaffeux) #4

Done as of: