diff --git a/assets/javascripts/wizard/templates/components/wizard-no-access.hbs b/assets/javascripts/wizard/templates/components/wizard-no-access.hbs index dd30042f..d3a2c192 100644 --- a/assets/javascripts/wizard/templates/components/wizard-no-access.hbs +++ b/assets/javascripts/wizard/templates/components/wizard-no-access.hbs @@ -2,6 +2,6 @@
diff --git a/extensions/extra_locales_controller.rb b/extensions/extra_locales_controller.rb index 4a1993b7..110f30d1 100644 --- a/extensions/extra_locales_controller.rb +++ b/extensions/extra_locales_controller.rb @@ -4,8 +4,7 @@ module ExtraLocalesControllerCustomWizard return false unless bundle =~ /wizard/ && request.referer =~ /\/w\// path = URI(request.referer).path wizard_id = path.split('/w/').last - wizard = CustomWizard::Wizard.create(wizard_id.underscore, current_user) - wizard && wizard.can_access? + CustomWizard::Template.exists?(wizard_id.underscore) end end end \ No newline at end of file