Skip to content

Commit 3f4dbdc

Browse files
committed
MAGETWO-52117: Customer group is not changed for logged in customer
1 parent 9e86fa6 commit 3f4dbdc

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

app/code/Magento/Customer/Controller/Account/UpdateSession.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,10 @@ public function __construct(
7070
public function execute()
7171
{
7272
$customerData = $this->jsonHelper->jsonDecode($this->getRequest()->getContent());
73-
$result = $this->notificationStorage->isExists(NotificationStorage::UPDATE_CUSTOMER_SESSION, $customerData['customer_id']);
74-
if (isset($customerData['customer_id']) && $result) {
73+
if (isset($customerData['customer_id']) && $this->notificationStorage->isExists(
74+
NotificationStorage::UPDATE_CUSTOMER_SESSION,
75+
$customerData['customer_id'])
76+
) {
7577
$customer = $this->customerRepository->getById($customerData['customer_id']);
7678
$this->session->setCustomerData($customer);
7779
$this->session->setCustomerGroupId($customer->getGroupId());

0 commit comments

Comments
 (0)