Skip to content

Commit 263c01c

Browse files
author
Sylvain Rayé
committed
Merge pull request #38 from gfobe/master
Add compatibility to Magento patch SUPEE-6285 (validating admin ACL)
2 parents 7614794 + 5697f6a commit 263c01c

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

app/code/community/Hackathon/MageMonitoring/controllers/Adminhtml/MonitoringController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,6 @@ public function flushAllCacheAction()
152152
*/
153153
protected function _isAllowed()
154154
{
155-
return Mage::getSingleton('admin/session')->isAllowed('magemonitoring');
155+
return Mage::getSingleton('admin/session')->isAllowed('system/magemonitoring');
156156
}
157157
}

app/code/community/Hackathon/MageMonitoring/controllers/Adminhtml/WidgetAjaxController.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,4 +262,14 @@ private function _saveTabConfig($data)
262262

263263
Mage::getConfig()->reinit();
264264
}
265+
266+
/**
267+
* Permission check
268+
*
269+
* @return mixed
270+
*/
271+
protected function _isAllowed()
272+
{
273+
return Mage::getSingleton('admin/session')->isAllowed('system/magemonitoring');
274+
}
265275
}

0 commit comments

Comments
 (0)