From 2c975c3d55f34151697004b7149627d2a73248d3 Mon Sep 17 00:00:00 2001 From: Luke Stewart Date: Sun, 19 Jun 2022 11:58:01 +1200 Subject: [PATCH] Refs: dev/core#3671 Fix regression involving CiviCRM Webform + Cases. Ignores permissions on api4 call in Recent::getTitle() --- CRM/Utils/Recent.php | 1 + 1 file changed, 1 insertion(+) diff --git a/CRM/Utils/Recent.php b/CRM/Utils/Recent.php index 04e5801edb..ab28c07ae9 100644 --- a/CRM/Utils/Recent.php +++ b/CRM/Utils/Recent.php @@ -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; } -- 2.25.1