/** * Controller pre-dispatch method * Check if current section is found and is allowed * * @return Mage_Backend_Adminhtml_System_ConfigController */ public function preDispatch() { parent::preDispatch(); if ($this->getRequest()->getParam('section')) { $this->_isSectionAllowed = $this->_isSectionAllowed($this->getRequest()->getParam('section')); } return $this; }
/** * Controller pre-dispatch method * Check if current section is found and is allowed * * @return Mage_Backend_Controller_ActionAbstract */ public function preDispatch() { parent::preDispatch(); $section = null; if (!$this->getRequest()->getParam('section')) { $section = $this->_configStructure->getFirstSection(); $this->getRequest()->setParam('section', $section->getId()); } else { $this->_isSectionAllowed($this->getRequest()->getParam('section')); } return $this; }