Skip to content

Commit 516524b

Browse files
authored
Add comment block
1 parent ce61689 commit 516524b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

app/code/Magento/Customer/Model/AccountManagement.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1680,6 +1680,13 @@ private function isAddressAllowedForWebsite(AddressInterface $address, $storeId)
16801680
return in_array($address->getCountryId(), $allowedCountries);
16811681
}
16821682

1683+
/**
1684+
* Set isSecureArea to true, then delete the customer and revert isSecureArea to original value
1685+
*
1686+
* @param CustomerInterface $customer
1687+
* @return void
1688+
* @throws LocalizedException
1689+
*/
16831690
private function deleteCustomerInSecureArea(CustomerInterface $customer): void
16841691
{
16851692
$originalValue = $this->registry->registry('isSecureArea');

0 commit comments

Comments
 (0)