/** * @protected * @Over ride */ public function _secure() { parent::_secure(); if ($this->user->type !== 'advertiser' || !$this->org) { $this->_404(); } $this->setLayout("layouts/advertiser"); }
/** * @protected * @Over ride */ public function _secure() { parent::_secure(); if ($this->user->type !== 'publisher' || !$this->org) { $this->noview(); throw new \Framework\Router\Exception\Controller("Invalid Request"); } $this->setLayout("layouts/publisher"); }