mirror of
https://github.com/discourse/discourse.git
synced 2025-05-24 03:36:18 +08:00
FIX: Allow advanced tutorial to be started if badges are disabled.
This commit is contained in:
@ -96,7 +96,7 @@ module DiscourseNarrativeBot
|
||||
}
|
||||
|
||||
def self.can_start?(user)
|
||||
return true if user.staff?
|
||||
return true if user.staff? || !SiteSetting.enable_badges
|
||||
user.badges.where(name: DiscourseNarrativeBot::NewUserNarrative::BADGE_NAME).exists?
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user