From: Eileen McNaughton Date: Tue, 19 Aug 2014 23:42:41 +0000 (+1200) Subject: CRM-15148 fix api to pass check_permissions X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=835307a7655664176f6c99c569fffecd64a744d2;p=civicrm-core.git CRM-15148 fix api to pass check_permissions this results in core acls but NOT hook acls being applied IF check_permissions=1 prior to this patch core acls but NOT hook acls were applied even if check_permissions =0 --- diff --git a/api/v3/utils.php b/api/v3/utils.php index 252f449479..873d60995e 100644 --- a/api/v3/utils.php +++ b/api/v3/utils.php @@ -518,7 +518,8 @@ function _civicrm_api3_get_query_object($params, $mode, $entity) { $newParams = CRM_Contact_BAO_Query::convertFormValues($inputParams); $query = new CRM_Contact_BAO_Query($newParams, $returnProperties, NULL, - FALSE, FALSE, $mode + FALSE, FALSE, $mode, + empty($params['check_permissions']) ); list($select, $from, $where, $having) = $query->query();