File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
app/code/Magento/QuoteGraphQl/Model/Cart
dev/tests/api-functional/testsuite/Magento/GraphQl/Quote/Customer Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -39,6 +39,8 @@ class GetCartForUser
39
39
* @param MaskedQuoteIdToQuoteIdInterface $maskedQuoteIdToQuoteId
40
40
* @param CartRepositoryInterface $cartRepository
41
41
* @param StoreManagerInterface $storeManager
42
+ * @param GetCustomer $getCustomer
43
+ * @param ContextInterface $context
42
44
*/
43
45
public function __construct (
44
46
MaskedQuoteIdToQuoteIdInterface $ maskedQuoteIdToQuoteId ,
@@ -62,6 +64,9 @@ public function __construct(
62
64
*/
63
65
public function execute (string $ cartHash , ?int $ customerId ): Quote
64
66
{
67
+ /* verify customer is confirmed and not locked */
68
+ $ this ->getCustomer ->execute ($ this ->context );
69
+
65
70
try {
66
71
$ cartId = $ this ->maskedQuoteIdToQuoteId ->execute ($ cartHash );
67
72
} catch (NoSuchEntityException $ exception ) {
Original file line number Diff line number Diff line change @@ -223,7 +223,6 @@ public function testGetCartWithNotExistingStore()
223
223
}
224
224
225
225
/**
226
- * _security
227
226
* @magentoApiDataFixture Magento/Customer/_files/customer.php
228
227
* @magentoApiDataFixture Magento/GraphQl/Catalog/_files/simple_product.php
229
228
* @magentoApiDataFixture Magento/GraphQl/Quote/_files/customer/create_empty_cart.php
You can’t perform that action at this time.
0 commit comments