From f9dd462957336f9557366a5dcf681cb2a4d6d466 Mon Sep 17 00:00:00 2001 From: Raphael Date: Tue, 24 Aug 2010 19:32:38 -0700 Subject: [PATCH] Check for current user again --- app/controllers/application_controller.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 1962b7d34..9219bdd67 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -16,8 +16,10 @@ class ApplicationController < ActionController::Base end def set_friends_and_status - @groups = current_user.groups - @friends = current_user.friends + if current_user + @groups = current_user.groups + @friends = current_user.friends + end end def count_requests