*/ class Mage_Adminhtml_Rss_CatalogController extends Mage_Adminhtml_Controller_Action { /** * Check is allowed access to action * * @return bool */ protected function _isAllowed() { $path = ''; $action = strtolower($this->getRequest()->getActionName()); if ($action == 'review') { $path = 'catalog/reviews_ratings'; } elseif ($action == 'notifystock') { $path = 'catalog/products'; } return Mage::getSingleton('admin/session')->isAllowed($path); } public function notifystockAction() { $this->getResponse()->setHeader('Content-type', 'text/xml; charset=UTF-8'); $this->loadLayout(false); $this->renderLayout(); } public function reviewAction() { $this->getResponse()->setHeader('Content-type', 'text/xml; charset=UTF-8'); $this->loadLayout(false); $this->renderLayout(); } }