diff --git a/app/models/person.rb b/app/models/person.rb index 7e8c8c3..e52bc76 100644 --- a/app/models/person.rb +++ b/app/models/person.rb @@ -215,4 +215,8 @@ class Person < Profile organization.tasks.pending.select{|task| self.has_permission?(task.permission, organization)} end + def is_a_friend?(person) + self.friends.include?(person) + end + end diff --git a/app/views/blocks/profile_info_actions/person.rhtml b/app/views/blocks/profile_info_actions/person.rhtml index d43cc65..cf7854a 100644 --- a/app/views/blocks/profile_info_actions/person.rhtml +++ b/app/views/blocks/profile_info_actions/person.rhtml @@ -1,6 +1,6 @@