We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 21f6154 commit fd1f7bbCopy full SHA for fd1f7bb
app/code/Magento/LoginAsCustomerAssistance/Plugin/CustomerPlugin.php
@@ -64,8 +64,8 @@ public function afterSave(
64
CustomerInterface $customer
65
): CustomerInterface {
66
$enoughPermission = true;
67
- if ($this->userContext->getUserType() === UserContextInterface::USER_TYPE_ADMIN
68
- || $this->userContext->getUserType() === UserContextInterface::USER_TYPE_INTEGRATION) {
+ if ($this->userContext->getUserType() === UserContextInterface::USER_TYPE_ADMIN ||
+ $this->userContext->getUserType() === UserContextInterface::USER_TYPE_INTEGRATION) {
69
$enoughPermission = $this->authorization->isAllowed('Magento_LoginAsCustomer::allow_shopping_assistance');
70
}
71
$customerId = (int)$result->getId();
0 commit comments