Skip to content

Commit fd1f7bb

Browse files
committed
MC-39523: Fix customer assistance plugin
1 parent 21f6154 commit fd1f7bb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/code/Magento/LoginAsCustomerAssistance/Plugin/CustomerPlugin.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ public function afterSave(
6464
CustomerInterface $customer
6565
): CustomerInterface {
6666
$enoughPermission = true;
67-
if ($this->userContext->getUserType() === UserContextInterface::USER_TYPE_ADMIN
68-
|| $this->userContext->getUserType() === UserContextInterface::USER_TYPE_INTEGRATION) {
67+
if ($this->userContext->getUserType() === UserContextInterface::USER_TYPE_ADMIN ||
68+
$this->userContext->getUserType() === UserContextInterface::USER_TYPE_INTEGRATION) {
6969
$enoughPermission = $this->authorization->isAllowed('Magento_LoginAsCustomer::allow_shopping_assistance');
7070
}
7171
$customerId = (int)$result->getId();

0 commit comments

Comments
 (0)