diff --git a/app/helpers/auth_helper.rb b/app/helpers/auth_helper.rb index bfea84c..2e0e7e8 100644 --- a/app/helpers/auth_helper.rb +++ b/app/helpers/auth_helper.rb @@ -12,7 +12,7 @@ module AuthHelper def require_user if !User.current.logged? - unless session[:token].nil? + unless session[:token] render :file => "public/401.html.erb", :status => :unauthorized, :layout =>true end end