/** * Check controller visibility * * @return boolean */ protected function isVisible() { return parent::isVisible() && $this->getCategory(); }
/** * Check controller visibility * * @return boolean */ protected function isVisible() { return parent::isVisible() && (!$this->getCategoryId() || $this->getCategory()); }