File tree Expand file tree Collapse file tree 2 files changed +15
-20
lines changed
app/code/Magento/Catalog/Controller/Adminhtml/Product Expand file tree Collapse file tree 2 files changed +15
-20
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
*/
@@ -46,15 +53,5 @@ public function execute()
46
53
);
47
54
return $ resultJson ;
48
55
}
49
-
50
- /**
51
- * Check for is allowed
52
- *
53
- * @return boolean
54
- */
55
- protected function _isAllowed ()
56
- {
57
- return $ this ->_authorization ->isAllowed ('Magento_Catalog::sets ' );
58
- }
59
56
}
60
57
Original file line number Diff line number Diff line change 8
8
9
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
*/
@@ -20,6 +27,7 @@ class SuggestAttributes extends \Magento\Backend\App\Action
20
27
21
28
/**
22
29
* @param \Magento\Backend\App\Action\Context $context
30
+ * @param \Magento\Catalog\Controller\Adminhtml\Product\Builder $productBuilder
23
31
* @param \Magento\Framework\Controller\Result\JsonFactory $resultJsonFactory
24
32
* @param \Magento\Framework\View\LayoutFactory $layoutFactory
25
33
*/
@@ -48,15 +56,5 @@ public function execute()
48
56
);
49
57
return $ resultJson ;
50
58
}
51
-
52
- /**
53
- * Check for is allowed
54
- *
55
- * @return boolean
56
- */
57
- protected function _isAllowed ()
58
- {
59
- return $ this ->_authorization ->isAllowed ('Magento_Catalog::attributes_attributes ' );
60
- }
61
59
}
62
60
You can’t perform that action at this time.
0 commit comments