mirror of
https://github.com/discourse/discourse.git
synced 2025-05-21 18:12:32 +08:00
Refactor requires login logic, reduce duplicate code
This also corrects the positioning in the chain of the check and removes misuse of prepend_before_action
This commit is contained in:
@ -3,9 +3,9 @@ require_dependency 'wizard/builder'
|
||||
require_dependency 'wizard/step_updater'
|
||||
|
||||
class StepsController < ApplicationController
|
||||
requires_login
|
||||
|
||||
before_action :ensure_wizard_enabled
|
||||
prepend_before_action :check_xhr, :ensure_logged_in
|
||||
before_action :ensure_admin
|
||||
|
||||
def update
|
||||
|
Reference in New Issue
Block a user