Skip to content

Commit

Permalink
Revert "Fix check permissions in civicrm_api call (#1019)" (#1026)
Browse files Browse the repository at this point in the history
This reverts commit 4df2f24.
  • Loading branch information
MegaphoneJon authored Nov 25, 2024
1 parent f212472 commit 00f0791
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/Utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,9 @@ function wf_civicrm_api4($entity, $operation, $params, $index = NULL) {
if (!$entity) {
return [];
}
$params['checkPermissions'] = FALSE;
$params += [
'checkPermissions' => FALSE,
];
$result = civicrm_api4($entity, $operation, $params, $index);
return $result;
}
Expand All @@ -656,7 +658,9 @@ function wf_civicrm_api($entity, $operation, $params) {
return [];
}

$params['check_permissions'] = FALSE;
$params += [
'check_permissions' => FALSE,
];
if ($operation == 'transact') {
$utils = \Drupal::service('webform_civicrm.utils');
$result = $utils->wf_civicrm_api3_contribution_transact($params);
Expand Down

0 comments on commit 00f0791

Please sign in to comment.