forked from External/greenlight
test sessions controller
This commit is contained in:
@ -48,10 +48,6 @@ class LandingController < ApplicationController
|
||||
render layout: false
|
||||
end
|
||||
|
||||
def auth_failure
|
||||
redirect_to '/'
|
||||
end
|
||||
|
||||
def admin?
|
||||
@user && @user == current_user
|
||||
end
|
||||
|
@ -34,4 +34,8 @@ class SessionsController < ApplicationController
|
||||
end
|
||||
redirect_to root_path
|
||||
end
|
||||
|
||||
def auth_failure
|
||||
redirect_to '/'
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user