Check for current user again
This commit is contained in:
parent
174dbc069b
commit
f9dd462957
1 changed files with 4 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue