Refs: dev/core#3671 Fix regression involving CiviCRM Webform + Cases.
authorLuke Stewart <luke@stewart.geek.nz>
Sat, 18 Jun 2022 23:58:01 +0000 (11:58 +1200)
committerLuke Stewart <luke@stewart.geek.nz>
Sat, 18 Jun 2022 23:58:01 +0000 (11:58 +1200)
Ignores permissions on api4 call in Recent::getTitle()

CRM/Utils/Recent.php

index 04e5801edb75f7a02f084c94ef7ea096a76386ff..ab28c07ae95c548340faca6ef5268ee238694c6b 100644 (file)
@@ -182,6 +182,7 @@ class CRM_Utils_Recent {
       $record = civicrm_api4($entityType, 'get', [
         'where' => [['id', '=', $entityId]],
         'select' => [$labelField],
+        'checkPermissions' => FALSE,
       ], 0);
       $title = $record[$labelField] ?? NULL;
     }