public function preDispatch() { parent::preDispatch(); if ($this->user->isAuthenticated() === false) { throw new UnauthorizedAccessException(); } }
/** * @return $this * @throws \ACP3\Core\Authentication\Exception\UnauthorizedAccessException */ public function preDispatch() { if ($this->user->isAuthenticated() === false) { throw new Core\Authentication\Exception\UnauthorizedAccessException(); } parent::preDispatch(); return $this; }
public function preDispatch() { parent::preDispatch(); $this->commentsSettings = $this->config->getSettings(Schema::MODULE_NAME); $this->emoticonsActive = $this->commentsSettings['emoticons'] == 1; }
public function preDispatch() { parent::preDispatch(); $this->settings = $this->config->getSettings(Schema::MODULE_NAME); }
public function preDispatch() { parent::preDispatch(); $this->newsSettings = $this->config->getSettings(Schema::MODULE_NAME); $this->commentsActive = $this->newsSettings['comments'] == 1 && $this->acl->hasPermission('frontend/comments') === true; }