Skip to content

Commit

Permalink
Fix malformed query when user with no access to any financial acls ac…
Browse files Browse the repository at this point in the history
…cesses civimember search
  • Loading branch information
eileenmcnaughton committed Apr 15, 2022
1 parent ba82944 commit 33274ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/financialacls/financialacls.php
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ function _financialacls_civicrm_get_membership_type_clause(): string {
}
$financialTypes = _financialacls_civicrm_get_accessible_financial_types();
if ($financialTypes === [0]) {
return 0;
return '= 0';
}
$membershipTypes = (array) MembershipType::get(FALSE)
->addWhere('financial_type_id', 'IN', $financialTypes)->execute()->indexBy('id');
Expand Down

0 comments on commit 33274ba

Please sign in to comment.