Index: user_relationships_api.api.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/user_relationships/user_relationships_api/Attic/user_relationships_api.api.inc,v
retrieving revision 1.1.2.7
diff -u -r1.1.2.7 user_relationships_api.api.inc
--- user_relationships_api.api.inc	28 Oct 2008 11:28:44 -0000	1.1.2.7
+++ user_relationships_api.api.inc	22 Dec 2008 02:24:59 -0000
@@ -365,3 +365,12 @@
     }
   }
 }
+
+/**
+ * Implements the hook_cck_field_privacy_access to allow users to display privacy fields
+ * based on a relationship with other users
+ */
+function user_relationships_api_cck_field_privacy_access($requestee, $requester) {
+  $relationship = user_relationships_load(array("between" => array($requestee->uid, $requester->uid)), array("count"=>TRUE), FALSE);
+  return $relationship;
+}
\ No newline at end of file

