/** * Sets scope for backend config * * @param string $sectionId * @return bool */ protected function isSectionAllowed($sectionId) { $website = $this->getRequest()->getParam('website'); $store = $this->getRequest()->getParam('store'); if ($store) { $this->_backendConfig->setStore($store); } elseif ($website) { $this->_backendConfig->setWebsite($website); } return parent::isSectionAllowed($sectionId); }
/** * Sets scope for backend config * * @param string $sectionId The section being viewed/edited/saved * * @return bool */ protected function isSectionAllowed($sectionId) { $container = $this->getRequest()->getParam('container'); $store = $this->getRequest()->getParam('store'); if ($store) { $this->backendConfig->setStore($store); } elseif ($container) { $this->backendConfig->setContainer($container); } return $this->sectionChecker->isSectionAllowed($sectionId); }