Take out remove friend button on stranger, there should be an add friend
This commit is contained in:
parent
e1d6c9ce03
commit
f309299e22
1 changed files with 1 additions and 1 deletions
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
%h1
|
||||
= @person.real_name
|
||||
- unless @person.id == current_user.person.id
|
||||
- if @person != current_user.person && current_user.friends.include?(@person)
|
||||
.right
|
||||
= link_to 'remove friend', @person, :confirm => 'Are you sure?', :method => :delete, :class => "button"
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue