diff --git a/app/helpers/auth_helper.rb b/app/helpers/auth_helper.rb index a31a24e..4605dcf 100644 --- a/app/helpers/auth_helper.rb +++ b/app/helpers/auth_helper.rb @@ -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