Redirect to sign_in if not logged in

This commit is contained in:
Mathieu Magnin 2018-01-17 12:13:26 +01:00
parent ae1498d786
commit 14b8ac614f

View file

@ -7,5 +7,15 @@ module Manager
params[:order] ||= "created_at"
params[:direction] ||= "desc"
end
protected
def authenticate_administration!
if administration_signed_in?
super
else
redirect_to manager_sign_in_path
end
end
end
end