Skip to content

EspoCRM – Open Source CRM Application

Comment

Yuriif56e476da482
diff --git a/application/Espo/Tools/Import/Import.php b/application/Espo/Tools/Import/Import.php
index cba0fd61df..9b4f0844ff 100644
--- a/application/Espo/Tools/Import/Import.php
+++ b/application/Espo/Tools/Import/Import.php
@@ -566,6 +566,7 @@ class Import
}
if ($entity->hasId()) {
+ // A trade-off. Users with access to the Import scope are considered privileged.
$this->entityManager
->getRDBRepository($entity->getEntityType())
->deleteFromDb($entity->getId(), true);