MS added check for current user

This commit is contained in:
maxwell 2010-08-24 13:45:38 -07:00
parent abf48cefd4
commit b4ab91043a

View file

@ -16,9 +16,11 @@ class ApplicationController < ActionController::Base
end
def set_friends_and_status
@group = :all
@groups = current_user.groups
@friends = current_user.friends
unless current_user.nil?
@group = :all
@groups = current_user.groups
@friends = current_user.friends
end
end
def count_requests