0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-26 11:00:28 +01:00
discourse-custom-wizard/extensions/extra_locales_controller.rb

10 Zeilen
334 B
Ruby

module ExtraLocalesControllerCustomWizard
private def valid_bundle?(bundle)
super || begin
return false unless bundle =~ /wizard/ && request.referer =~ /\/w\//
path = URI(request.referer).path
wizard_id = path.split('/w/').last
2020-12-08 03:27:19 +01:00
CustomWizard::Template.exists?(wizard_id.underscore)
end
end
end