Exemplo n.º 1
0
 protected function startup()
 {
     parent::startup();
     if (!$this->user->isLoggedIn() or !$this->user->isInRole('user')) {
         $this->redirect('Sign:In');
     }
 }
Exemplo n.º 2
0
 public function startup()
 {
     parent::startup();
     if ($this->getUser()->isLoggedIn()) {
         $this->flashMessage("Přihlášený uživatel si nemůže vytvořit další účet.", "alert-danger");
         $this->redirect("Homepage:default");
     }
 }
 public function startup()
 {
     parent::startup();
     if ($this->getUser()->isLoggedIn()) {
         $this->flashMessage("Přihlášený uživatel si nemůže požádat o zapomenuté heslo.", "alert-danger");
         $this->redirect("Homepage:default");
     }
 }
Exemplo n.º 4
0
 protected function startup()
 {
     parent::startup();
     $this->horninaRepository = $this->context->horninaRepository;
     $this->horninaObrazokRepository = $this->context->horninaObrazokRepository;
 }