Skip to content

Commit a410237

Browse files
Merge pull request #9089 from magento-cia/ACP2E-3188
ACP2E-3188 improve customer update
2 parents 2bffa45 + 70115d6 commit a410237

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/code/Magento/Customer/Model/Plugin/UpdateCustomer.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,9 @@ public function beforeSave(
6363
$customerId === $customerSessionId
6464
) {
6565
$customer = $this->getUpdatedCustomer($customerRepository->getById($customerId), $customer);
66-
} elseif ($userType === UserContextInterface::USER_TYPE_ADMIN && $customerId) {
66+
} elseif ($customerId && in_array($userType, [UserContextInterface::USER_TYPE_ADMIN,
67+
UserContextInterface::USER_TYPE_INTEGRATION], true)
68+
) {
6769
$customer = $this->getUpdatedCustomer($customerRepository->getById($customerId), $customer);
6870
}
6971

0 commit comments

Comments
 (0)