Update auth_helper.rb

This commit is contained in:
ricky authored and GitHub committed 2016-09-19 22:57:19 -04:00
1 parent 8cf2f370bf
commit 334d3c930b
1 file changed
-2
-2
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