From e91450e71b0ec0a7977e797e53d257c9b80d6388 Mon Sep 17 00:00:00 2001 From: monishdeb Date: Mon, 21 Sep 2015 19:47:36 +0530 Subject: [PATCH] minor change --- CRM/Contact/BAO/Relationship.php | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/CRM/Contact/BAO/Relationship.php b/CRM/Contact/BAO/Relationship.php index 04ac146937..e89d703fc3 100644 --- a/CRM/Contact/BAO/Relationship.php +++ b/CRM/Contact/BAO/Relationship.php @@ -1233,12 +1233,9 @@ LEFT JOIN civicrm_country ON (civicrm_address.country_id = civicrm_country.id) while ($relationship->fetch()) { $rid = $relationship->civicrm_relationship_id; $cid = $relationship->civicrm_contact_id; - if (($permissionedContact && - (!CRM_Contact_BAO_Contact_Permission::relationship($cid, $contactId)) - ) || - (($action & CRM_Core_Action::BROWSE) && - (!CRM_Contact_BAO_Contact_Permission::allow($cid)) - ) + if (($action & CRM_Core_Action::BROWSE) && + $permissionedContact && + (!CRM_Contact_BAO_Contact_Permission::relationship($cid, $contactId)) ) { continue; } -- 2.25.1