Skip to content

Commit

Permalink
Merge pull request #23611 from eileenmcnaughton/549
Browse files Browse the repository at this point in the history
Fix 'Authorization Failed' regression when submitting eg. webform via  checksum
  • Loading branch information
totten authored May 30, 2022
2 parents 13b3a94 + 6a921ea commit 966aaa2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CRM/Utils/Recent.php
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ public static function on_hook_civicrm_post(\Civi\Core\Event\PostEvent $event) {
}
elseif ($event->action === 'edit') {
if (isset($event->object->is_deleted)) {
\Civi\Api4\RecentItem::update()
\Civi\Api4\RecentItem::update(FALSE)
->addWhere('entity_type', '=', $entityType)
->addWhere('entity_id', '=', $event->id)
->addValue('is_deleted', (bool) $event->object->is_deleted)
Expand Down

0 comments on commit 966aaa2

Please sign in to comment.