Skip to content

Commit 9f1fa3f

Browse files
author
Yaroslav Onischenko
committed
Merge branch 'MAGETWO-50317' into develop
2 parents 330cb1c + 082e6a2 commit 9f1fa3f

File tree

2 files changed

+18
-3
lines changed

2 files changed

+18
-3
lines changed

app/code/Magento/Catalog/Controller/Adminhtml/Product/SuggestAttributeSets.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,13 @@
88

99
class SuggestAttributeSets extends \Magento\Backend\App\Action
1010
{
11+
/**
12+
* Authorization level of a basic admin session
13+
*
14+
* @see _isAllowed()
15+
*/
16+
const ADMIN_RESOURCE = 'Magento_Catalog::sets';
17+
1118
/**
1219
* @var \Magento\Framework\Controller\Result\JsonFactory
1320
*/
@@ -47,3 +54,4 @@ public function execute()
4754
return $resultJson;
4855
}
4956
}
57+

app/code/Magento/Catalog/Controller/Adminhtml/Product/SuggestAttributes.php

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,15 @@
66
*/
77
namespace Magento\Catalog\Controller\Adminhtml\Product;
88

9-
class SuggestAttributes extends \Magento\Catalog\Controller\Adminhtml\Product
9+
class SuggestAttributes extends \Magento\Backend\App\Action
1010
{
11+
/**
12+
* Authorization level of a basic admin session
13+
*
14+
* @see _isAllowed()
15+
*/
16+
const ADMIN_RESOURCE = 'Magento_Catalog::attributes_attributes';
17+
1118
/**
1219
* @var \Magento\Framework\Controller\Result\JsonFactory
1320
*/
@@ -26,11 +33,10 @@ class SuggestAttributes extends \Magento\Catalog\Controller\Adminhtml\Product
2633
*/
2734
public function __construct(
2835
\Magento\Backend\App\Action\Context $context,
29-
\Magento\Catalog\Controller\Adminhtml\Product\Builder $productBuilder,
3036
\Magento\Framework\Controller\Result\JsonFactory $resultJsonFactory,
3137
\Magento\Framework\View\LayoutFactory $layoutFactory
3238
) {
33-
parent::__construct($context, $productBuilder);
39+
parent::__construct($context);
3440
$this->resultJsonFactory = $resultJsonFactory;
3541
$this->layoutFactory = $layoutFactory;
3642
}
@@ -51,3 +57,4 @@ public function execute()
5157
return $resultJson;
5258
}
5359
}
60+

0 commit comments

Comments
 (0)