Update auth_helper.rb

This commit is contained in:
ricky authored and GitHub committed 2016-09-19 23:01:58 -04:00
1 parent 7b483f3290
commit 64369470de
1 file changed
+1
+1
View File
@@ -11,6 +11,7 @@
module AuthHelper
def require_user
return unless session[:token].nil?
if !User.current.logged?
render :file => "public/401.html.erb", :status => :unauthorized, :layout =>true
end