MS added check for current user
This commit is contained in:
parent
abf48cefd4
commit
b4ab91043a
1 changed files with 5 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue