Skip to content

Commit bfaeaf1

Browse files
Merge branch '2.0' into 2-0-8-backlog
2 parents 331f81e + 7508f98 commit bfaeaf1

File tree

3 files changed

+24
-0
lines changed

3 files changed

+24
-0
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
@@ -46,4 +46,12 @@ public function execute()
4646
);
4747
return $resultJson;
4848
}
49+
50+
/**
51+
* @return bool
52+
*/
53+
protected function _isAllowed()
54+
{
55+
return $this->_authorization->isAllowed('Magento_Catalog::products');
56+
}
4957
}

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,12 @@ public function execute()
5050
);
5151
return $resultJson;
5252
}
53+
54+
/**
55+
* @return bool
56+
*/
57+
protected function _isAllowed()
58+
{
59+
return $this->_authorization->isAllowed('Magento_Catalog::products');
60+
}
5361
}

dev/tests/integration/testsuite/Magento/Test/Integrity/Modular/_files/skip_blocks_ce.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,16 @@
1515
'Magento\Config\Block\System\Config\Form',
1616
'Magento\Config\Block\System\Config\Tabs',
1717
'Magento\Review\Block\Form',
18+
'Magento\Braintree\Block\Form',
19+
'Magento\Braintree\Block\Payment',
1820
// Fails because of dependence on registry
1921
'Magento\Reminder\Block\Adminhtml\Reminder\Edit\Tab\Customers',
2022
'Magento\LayeredNavigation\Block\Navigation',
2123
'Magento\LayeredNavigation\Block\Navigation\State',
24+
// Other failures
25+
'Magento\ProductAlert\Block\Email\Price',
26+
'Magento\ProductAlert\Block\Email\Stock',
27+
'Magento\ProductAlert\Block\Product\View',
28+
'Magento\ProductAlert\Block\Product\View\Price',
29+
'Magento\ProductAlert\Block\Product\View\Stock'
2230
];

0 commit comments

Comments
 (0)