diff --git a/CRM/Contact/Import/Form/Preview.php b/CRM/Contact/Import/Form/Preview.php index e979cbc9a0b7..0a4f1b27d994 100644 --- a/CRM/Contact/Import/Form/Preview.php +++ b/CRM/Contact/Import/Form/Preview.php @@ -285,12 +285,8 @@ public function postProcess() { // run the import $importJob->runImport($this); - // update cache after we done with runImport - if (!CRM_Core_Permission::check('view all contacts')) { - CRM_ACL_BAO_Cache::updateEntry($userID); - } - - // clear all caches + // Clear all caches, forcing any searches to recheck the ACLs or group membership as the import + // may have changed it. CRM_Contact_BAO_Contact_Utils::clearContactCaches(); // add all the necessary variables to the form