Update auth_helper.rb

This commit is contained in:
2016-09-19 22:57:19 -04:00
committed by GitHub
parent 8cf2f370bf
commit 334d3c930b

View File

@@ -11,8 +11,6 @@
module AuthHelper
def require_user
return if session[:token]
if !User.current.logged?
render :file => "public/401.html.erb", :status => :unauthorized, :layout =>true
end