Skip to content

Commit 44d89ee

Browse files
author
Mark Berube
committed
MC-40099: Changing groupId functionality on createAccount()
1 parent cec8bc2 commit 44d89ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -850,7 +850,7 @@ public function getConfirmationStatus($customerId)
850850
public function createAccount(CustomerInterface $customer, $password = null, $redirectUrl = '')
851851
{
852852
$groupId = $customer->getGroupId();
853-
if ($groupId || $groupId === 0 && !$this->authorization->isAllowed(self::ADMIN_RESOURCE)) {
853+
if (isset($groupId) && !$this->authorization->isAllowed(self::ADMIN_RESOURCE)) {
854854
$customer->setGroupId(null);
855855
}
856856

0 commit comments

Comments
 (0)