From: Jon Goldberg Date: Fri, 4 Feb 2022 17:14:01 +0000 (-0500) Subject: Fix dedupe check to not require elevated permissions X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=8218ce8a5d39a287ef12dc1f5b9d7dd638fea30e;p=civicrm-core.git Fix dedupe check to not require elevated permissions --- diff --git a/CRM/Utils/Check/Component/DedupeRules.php b/CRM/Utils/Check/Component/DedupeRules.php index 6cd6bf8a02..7c0b68666d 100644 --- a/CRM/Utils/Check/Component/DedupeRules.php +++ b/CRM/Utils/Check/Component/DedupeRules.php @@ -22,7 +22,7 @@ class CRM_Utils_Check_Component_DedupeRules extends CRM_Utils_Check_Component { * @return string[] */ private static function getContactTypesForRule($used) { - $dedupeRules = \Civi\Api4\DedupeRuleGroup::get() + $dedupeRules = \Civi\Api4\DedupeRuleGroup::get(FALSE) ->addSelect('contact_type') ->addGroupBy('contact_type') ->addWhere('used', '=', $used)