21 lines
429 B
PHP
21 lines
429 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Presentation;
|
|
|
|
use Nette;
|
|
|
|
|
|
abstract class BasePresenter extends Nette\Application\UI\Presenter
|
|
{
|
|
protected function startup(): void
|
|
{
|
|
parent::startup();
|
|
if (!$this->getUser()->isLoggedIn()) {
|
|
$this->flashMessage('Pro tuto agendu se přihlaste.');
|
|
$this->redirect(':Sign:in', ['backlink' => $this->storeRequest()]);
|
|
}
|
|
}
|
|
}
|