mirror of
https://github.com/discourse/discourse.git
synced 2025-05-24 13:51:09 +08:00
FIX: Skip poll tutorial if user cannot create polls (#9058)
This commit is contained in:
@ -82,7 +82,7 @@ module DiscourseNarrativeBot
|
||||
},
|
||||
|
||||
tutorial_poll: {
|
||||
prerequisite: Proc.new { SiteSetting.poll_enabled },
|
||||
prerequisite: Proc.new { SiteSetting.poll_enabled && @user.has_trust_level?(SiteSetting.poll_minimum_trust_level_to_create) },
|
||||
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