Skip to content

Commit

Permalink
Added check for isModuleOutputEnabled('Mage_Review') in customer's ba…
Browse files Browse the repository at this point in the history
…ckend page (#4075)

Co-authored-by: Ng Kiat Siong <[email protected]>
  • Loading branch information
eneiasramos and kiatng authored Jul 7, 2024
1 parent ced031d commit 594c640
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/code/core/Mage/Adminhtml/Block/Customer/Edit/Tabs.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ protected function _beforeToHtml()
]);
}

if (Mage::getSingleton('admin/session')->isAllowed('catalog/reviews_ratings')) {
if (Mage::helper('core')->isModuleOutputEnabled('Mage_Review') && Mage::getSingleton('admin/session')->isAllowed('catalog/reviews_ratings')) {
$this->addTab('reviews', [
'label' => Mage::helper('customer')->__('Product Reviews'),
'class' => 'ajax',
Expand Down

0 comments on commit 594c640

Please sign in to comment.