Skip to content

Commit e67cde3

Browse files
committed
MAGETWO-61274: Admin user with access only to Catalog cannot create configurable product
1 parent 263d075 commit e67cde3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/code/Magento/ConfigurableProduct/Block/Adminhtml/Product/Steps/SelectAttributes.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class SelectAttributes extends \Magento\Ui\Block\Component\StepsWizard\StepAbstr
1717
*
1818
* @var \Magento\Framework\Registry
1919
*/
20-
protected $registry = null;
20+
protected $coreRegistry = null;
2121

2222
/**
2323
* @param \Magento\Framework\View\Element\Template\Context $context
@@ -28,7 +28,7 @@ public function __construct(
2828
\Magento\Framework\Registry $registry
2929
) {
3030
parent::__construct($context);
31-
$this->registry = $registry;
31+
$this->coreRegistry = $registry;
3232
}
3333

3434
/**
@@ -50,7 +50,7 @@ public function getAddNewAttributeButton($dataProvider = '')
5050
'productAttributes' => [
5151
'dataProvider' => $dataProvider,
5252
'url' => $this->getUrl('catalog/product_attribute/new', [
53-
'store' => $this->registry->registry('current_product')->getStoreId(),
53+
'store' => $this->coreRegistry->registry('current_product')->getStoreId(),
5454
'product_tab' => 'variations',
5555
'popup' => 1,
5656
'_query' => [

0 commit comments

Comments
 (0)