Redirect to sign_in if not logged in
This commit is contained in:
parent
ae1498d786
commit
14b8ac614f
1 changed files with 10 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue