Skip to content

EspoCRM – Open Source CRM Application

Import foreign skip if no access to read

Yuriia782f4443aa5
diff --git a/application/Espo/Tools/Import/Import.php b/application/Espo/Tools/Import/Import.php
index 070b4bcc22..2c568b3c3d 100644
--- a/application/Espo/Tools/Import/Import.php
+++ b/application/Espo/Tools/Import/Import.php
@@ -1517,7 +1517,8 @@ class Import
if (
$attributeDefs?->getType() === AttributeType::FOREIGN &&
- $entityDefs->tryGetField($attribute)?->getParam('relateOnImport')
+ $entityDefs->tryGetField($attribute)?->getParam('relateOnImport') &&
+ $this->aclManager->checkField($this->user, $entityType, $attribute)
) {
continue;
}