you dont have a pending request from everyone
This commit is contained in:
parent
3688b3982f
commit
2fbf2ddd6f
1 changed files with 1 additions and 1 deletions
|
|
@ -12,7 +12,7 @@ class PeopleController < ApplicationController
|
|||
@aspect = :search
|
||||
|
||||
@people = Person.search(params[:q]).paginate :page => params[:page], :per_page => 25, :order => 'created_at DESC'
|
||||
@requests = Request.all(:to_id.in => @people.map{|p| p.id})
|
||||
@requests = Request.all(:to_id.in => @people.map{|p| p.id}, :from_id => current_user.person.id)
|
||||
|
||||
#only do it if it is an email address
|
||||
if params[:q].try(:match, Devise.email_regexp)
|
||||
|
|
|
|||
Loading…
Reference in a new issue