Skip to content

Commit a8ea439

Browse files
committed
magento/graphql-ce#486: Add customer account validation in Quote operations
1 parent 0a68474 commit a8ea439

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

app/code/Magento/QuoteGraphQl/Model/Cart/GetCartForUser.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,6 @@ class GetCartForUser
3939
* @param MaskedQuoteIdToQuoteIdInterface $maskedQuoteIdToQuoteId
4040
* @param CartRepositoryInterface $cartRepository
4141
* @param StoreManagerInterface $storeManager
42-
* @param GetCustomer $getCustomer
43-
* @param ContextInterface $context
4442
*/
4543
public function __construct(
4644
MaskedQuoteIdToQuoteIdInterface $maskedQuoteIdToQuoteId,
@@ -64,9 +62,6 @@ public function __construct(
6462
*/
6563
public function execute(string $cartHash, ?int $customerId): Quote
6664
{
67-
/* verify customer is confirmed and not locked */
68-
$this->getCustomer->execute($this->context);
69-
7065
try {
7166
$cartId = $this->maskedQuoteIdToQuoteId->execute($cartHash);
7267
} catch (NoSuchEntityException $exception) {

0 commit comments

Comments
 (0)