Profile of requestor should be visible; no outgoing request instance variable needed
This commit is contained in:
parent
eb56521a66
commit
d2199fa1eb
2 changed files with 1 additions and 2 deletions
|
|
@ -47,7 +47,6 @@ class PeopleController < ApplicationController
|
|||
|
||||
if @person
|
||||
@incoming_request = Request.to(current_user).from(@person).first
|
||||
@outgoing_request = Request.from(current_user).to(@person).first
|
||||
|
||||
@profile = @person.profile
|
||||
@contact = current_user.contact_for(@person)
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@
|
|||
%br
|
||||
%hr{:style=>"width:300px;"}
|
||||
|
||||
-if (contact && !contact.pending?) || person == current_user.person
|
||||
-if (contact && !contact.pending?) || person == current_user.person || @incoming_request
|
||||
%ul#profile_information
|
||||
%li
|
||||
%h3 #{t('.bio')}
|
||||
|
|
|
|||
Loading…
Reference in a new issue