check if you are friends before displaying group list
This commit is contained in:
parent
831609ad15
commit
39380c3c06
1 changed files with 1 additions and 1 deletions
|
|
@ -13,7 +13,7 @@
|
|||
-unless @posts.first.nil?
|
||||
%li
|
||||
%i= "last seen: #{how_long_ago(@posts.first)}"
|
||||
- unless @person == current_user.person
|
||||
- unless @person == current_user.person || not current_user.friends.include?(@person)
|
||||
%li
|
||||
%i= "friends since: #{how_long_ago(@person)}"
|
||||
%li
|
||||
|
|
|
|||
Loading…
Reference in a new issue