File tree Expand file tree Collapse file tree 2 files changed +18
-3
lines changed
app/code/Magento/Catalog/Controller/Adminhtml/Product Expand file tree Collapse file tree 2 files changed +18
-3
lines changed Original file line number Diff line number Diff line change 8
8
9
9
class SuggestAttributeSets extends \Magento \Backend \App \Action
10
10
{
11
+ /**
12
+ * Authorization level of a basic admin session
13
+ *
14
+ * @see _isAllowed()
15
+ */
16
+ const ADMIN_RESOURCE = 'Magento_Catalog::sets ' ;
17
+
11
18
/**
12
19
* @var \Magento\Framework\Controller\Result\JsonFactory
13
20
*/
@@ -47,3 +54,4 @@ public function execute()
47
54
return $ resultJson ;
48
55
}
49
56
}
57
+
Original file line number Diff line number Diff line change 6
6
*/
7
7
namespace Magento \Catalog \Controller \Adminhtml \Product ;
8
8
9
- class SuggestAttributes extends \Magento \Catalog \ Controller \ Adminhtml \Product
9
+ class SuggestAttributes extends \Magento \Backend \ App \Action
10
10
{
11
+ /**
12
+ * Authorization level of a basic admin session
13
+ *
14
+ * @see _isAllowed()
15
+ */
16
+ const ADMIN_RESOURCE = 'Magento_Catalog::attributes_attributes ' ;
17
+
11
18
/**
12
19
* @var \Magento\Framework\Controller\Result\JsonFactory
13
20
*/
@@ -26,11 +33,10 @@ class SuggestAttributes extends \Magento\Catalog\Controller\Adminhtml\Product
26
33
*/
27
34
public function __construct (
28
35
\Magento \Backend \App \Action \Context $ context ,
29
- \Magento \Catalog \Controller \Adminhtml \Product \Builder $ productBuilder ,
30
36
\Magento \Framework \Controller \Result \JsonFactory $ resultJsonFactory ,
31
37
\Magento \Framework \View \LayoutFactory $ layoutFactory
32
38
) {
33
- parent ::__construct ($ context, $ productBuilder );
39
+ parent ::__construct ($ context );
34
40
$ this ->resultJsonFactory = $ resultJsonFactory ;
35
41
$ this ->layoutFactory = $ layoutFactory ;
36
42
}
@@ -51,3 +57,4 @@ public function execute()
51
57
return $ resultJson ;
52
58
}
53
59
}
60
+
You can’t perform that action at this time.
0 commit comments