Skip to content

Commit 71492c2

Browse files
committed
ACP2E-3025: Admin User with limited Role Resources unable to view Shopping Carts
- without test
1 parent 7e0e558 commit 71492c2

File tree

1 file changed

+3
-1
lines changed
  • app/code/Magento/Customer/Block/Adminhtml/Edit/Tab

1 file changed

+3
-1
lines changed

app/code/Magento/Customer/Block/Adminhtml/Edit/Tab/Cart.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,9 @@ protected function getQuote()
272272
{
273273
if (null === $this->quote) {
274274
$customerId = $this->getCustomerId();
275-
$storeIds = $this->_storeManager->getWebsite($this->getWebsiteId())->getStoreIds();
275+
$websiteId = $this->getWebsiteId() ?:
276+
$this->_storeManager->getDefaultStoreView()->getWebsiteId();
277+
$storeIds = $this->_storeManager->getWebsite($websiteId)->getStoreIds();
276278

277279
try {
278280
$this->quote = $this->quoteRepository->getForCustomer($customerId, $storeIds);

0 commit comments

Comments
 (0)