From: monishdeb Date: Mon, 21 Sep 2015 14:17:36 +0000 (+0530) Subject: minor change X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=e91450e71b0ec0a7977e797e53d257c9b80d6388;p=civicrm-core.git minor change --- 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; }