mirror of
https://github.com/discourse/discourse.git
synced 2025-05-21 18:12:32 +08:00
FIX: Don't start discobot poll tutorial if polls are disabled.
https://meta.discourse.org/t/discobot-dont-take-users-through-the-poll-tutorial-if-its-not-enabled/76604/3
This commit is contained in:
@ -80,6 +80,7 @@ module DiscourseNarrativeBot
|
||||
},
|
||||
|
||||
tutorial_poll: {
|
||||
prerequisite: Proc.new { SiteSetting.poll_enabled },
|
||||
next_state: :tutorial_details,
|
||||
next_instructions: Proc.new { I18n.t("#{I18N_KEY}.details.instructions", i18n_post_args) },
|
||||
reply: {
|
||||
|
Reference in New Issue
Block a user