diff --git a/CRM/Core/ManagedEntities.php b/CRM/Core/ManagedEntities.php index c49f6e758cbc..983bcbd93a8a 100644 --- a/CRM/Core/ManagedEntities.php +++ b/CRM/Core/ManagedEntities.php @@ -464,6 +464,7 @@ protected function removeStaleEntity($dao) { // CRM_Core_BAO_Managed::on_hook_civicrm_post() if ($doDelete && CRM_Core_BAO_Managed::isApi4ManagedType($dao->entity_type)) { civicrm_api4($dao->entity_type, 'delete', [ + 'checkPermissions' => FALSE, 'where' => [['id', '=', $dao->entity_id]], ]); }