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

Prevent guests from accessing custom wizards

Dieser Commit ist enthalten in:
Angus McLeod 2017-11-03 16:50:01 +08:00
Ursprung f3588dbe89
Commit 760c67bb6f

Datei anzeigen

@ -1,6 +1,10 @@
class CustomWizard::WizardController < ::ApplicationController class CustomWizard::WizardController < ::ApplicationController
prepend_view_path(Rails.root.join('plugins', 'discourse-custom-wizard', 'views')) prepend_view_path(Rails.root.join('plugins', 'discourse-custom-wizard', 'views'))
layout 'wizard' layout 'wizard'
skip_before_action :check_xhr, :preload_json
before_action :ensure_logged_in
helper_method :wizard_page_title helper_method :wizard_page_title
def wizard_page_title def wizard_page_title