Skip to content

Commit 4a26ae9

Browse files
committed
MC-42779: Error on page builder when adding products for users not having admin access
1 parent b0d9bef commit 4a26ae9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/code/Magento/PageBuilder/Controller/Adminhtml/Form/Element/ProductTotals.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@
99
namespace Magento\PageBuilder\Controller\Adminhtml\Form\Element;
1010

1111
use Exception;
12-
use Magento\Backend\App\Action;
1312
use Magento\Backend\App\Action\Context;
13+
use Magento\CatalogWidget\Controller\Adminhtml\Product\Widget;
1414
use Magento\Framework\App\Action\HttpPostActionInterface;
1515
use Magento\Framework\Controller\Result\JsonFactory;
1616

1717
/**
1818
* Returns the number of products that match the provided conditions
1919
*/
20-
class ProductTotals extends Action implements HttpPostActionInterface
20+
class ProductTotals extends Widget implements HttpPostActionInterface
2121
{
2222

2323
/**

0 commit comments

Comments
 (0)