_configStructure = $configStructure; } /** * Check if specified section allowed in ACL * * Will forward to deniedAction(), if not allowed. * * @param string $sectionId * @throws \Exception * @return bool * @throws NotFoundException */ public function isSectionAllowed($sectionId) { try { if (false == $this->_configStructure->getElement($sectionId)->isAllowed()) { throw new \Exception(''); } return true; } catch (\Zend_Acl_Exception $e) { throw new NotFoundException(__('Page not found.')); } catch (\Exception $e) { return false; } } }