Skip to content

Commit a832155

Browse files
Merge branch '2.4.8-beta1-develop' into AC-9871-2
2 parents c77792b + a410237 commit a832155

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)