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

FIX: no access locale and svg icon

Dieser Commit ist enthalten in:
Angus McLeod 2020-12-08 13:27:19 +11:00
Ursprung be204c1cb6
Commit 6dfd9e36c2
2 geänderte Dateien mit 2 neuen und 3 gelöschten Zeilen

Datei anzeigen

@ -2,6 +2,6 @@
<div class="no-access-gutter"> <div class="no-access-gutter">
<button class='wizard-btn primary return-to-site' {{action 'skip'}}> <button class='wizard-btn primary return-to-site' {{action 'skip'}}>
{{wizard-i18n 'wizard.return_to_site' siteName=siteName}} {{wizard-i18n 'wizard.return_to_site' siteName=siteName}}
{{d-icon "sign-out"}} {{d-icon "sign-out-alt"}}
</button> </button>
</div> </div>

Datei anzeigen

@ -4,8 +4,7 @@ module ExtraLocalesControllerCustomWizard
return false unless bundle =~ /wizard/ && request.referer =~ /\/w\// return false unless bundle =~ /wizard/ && request.referer =~ /\/w\//
path = URI(request.referer).path path = URI(request.referer).path
wizard_id = path.split('/w/').last wizard_id = path.split('/w/').last
wizard = CustomWizard::Wizard.create(wizard_id.underscore, current_user) CustomWizard::Template.exists?(wizard_id.underscore)
wizard && wizard.can_access?
end end
end end
end end