From 39380c3c06a1c1b0a09af5ae4550618adf7ac9e4 Mon Sep 17 00:00:00 2001 From: Raphael Date: Fri, 27 Aug 2010 10:22:58 -0700 Subject: [PATCH] check if you are friends before displaying group list --- app/views/people/show.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/people/show.html.haml b/app/views/people/show.html.haml index df4b94e59..472d6a9dd 100644 --- a/app/views/people/show.html.haml +++ b/app/views/people/show.html.haml @@ -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