$count = 0, $relationshipId = 0,
$links = NULL, $permissionMask = NULL,
$permissionedContact = FALSE,
- $action = CRM_Core_Action::BROWSE,
$params = array()
) {
$values = array();
while ($relationship->fetch()) {
$rid = $relationship->civicrm_relationship_id;
$cid = $relationship->civicrm_contact_id;
- if (($action & CRM_Core_Action::BROWSE) &&
- $permissionedContact &&
+ if ($permissionedContact &&
(!CRM_Contact_BAO_Contact_Permission::relationship($cid, $contactId))
) {
continue;
$relationships = array();
if (isset($membershipType['relationship_type_id'])) {
$relationships = CRM_Contact_BAO_Relationship::getRelationship($contactId,
- CRM_Contact_BAO_Relationship::CURRENT, NULL, NULL, NULL, NULL, NULL, FALSE, $action
+ CRM_Contact_BAO_Relationship::CURRENT
);
if ($action & CRM_Core_Action::UPDATE) {
$pastRelationships = CRM_Contact_BAO_Relationship::getRelationship($contactId,
- CRM_Contact_BAO_Relationship::PAST, NULL, NULL, NULL, NULL, NULL, FALSE, $action
+ CRM_Contact_BAO_Relationship::PAST
);
$relationships = array_merge($relationships, $pastRelationships);
}