示例#1
0
 public function preDispatch()
 {
     parent::preDispatch();
     if ($this->user->isAuthenticated() === false) {
         throw new UnauthorizedAccessException();
     }
 }
示例#2
0
 /**
  * @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;
 }
示例#4
0
 public function preDispatch()
 {
     parent::preDispatch();
     $this->settings = $this->config->getSettings(Schema::MODULE_NAME);
 }
示例#5
0
 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;
 }