Exemple #1
0
 /**
  * Check controller visibility
  *
  * @return boolean
  */
 protected function isVisible()
 {
     return parent::isVisible() && $this->getProduct() && ($this->getProduct()->isVisible() || $this->isPreview());
 }
Exemple #2
0
 /**
  * Check controller visibility
  *
  * @return boolean
  */
 protected function isVisible()
 {
     return parent::isVisible() && null !== $this->getCategory() && $this->getCategory()->isVisible();
 }