mirror of
https://github.com/diaspora/diaspora.git
synced 2026-04-29 03:01:03 -04:00
MS added check for current user
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user