minor change
authormonishdeb <monish.deb@webaccessglobal.com>
Mon, 21 Sep 2015 14:17:36 +0000 (19:47 +0530)
committermonishdeb <monish.deb@webaccessglobal.com>
Mon, 5 Oct 2015 20:33:09 +0000 (02:03 +0530)
CRM/Contact/BAO/Relationship.php

index 04ac146937998ddaf4722fca5a6c3eeb4fa5f3da..e89d703fc3e72214cf88833c9d1acefa714f3c03 100644 (file)
@@ -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;
         }