protected function startup() { parent::startup(); $this->taskLists = $this->context->taskLists; $this->tasks = $this->context->tasks; $this->users = $this->context->users; }
protected function startup() { parent::startup(); if (!$this->user->isAllowed('system')) { $this->flashMessage('Nemáte oprávnění pro přístup!', 'error'); $this->redirect('Homepage:'); } }
protected function startup() { parent::startup(); if (!$this->user->isAllowed('update', 'edit')) { $this->flashMessage('Nemáte oprávnění pro přístup!', 'error'); $this->redirect('Homepage:'); } $this->path = $this->serverRepo->getPath($this->selectedServerId); }
protected function startup() { parent::startup(); $this->serverCmd = $this->context->serverCommander; $this->serverRepo = $this->context->serverRepository; if (!$this->user->isAllowed('commands', 'edit')) { $this->flashMessage('Nemáte oprávnění pro přístup!', 'error'); $this->redirect('Homepage:'); } }
protected function startup() { parent::startup(); if (!$this->user->isAllowed('server-settings', 'view') and !$this->user->isAllowed('server-settings', 'edit')) { $this->flashMessage('Nemáte oprávnění pro přístup!', 'error'); $this->redirect('Homepage:'); } $this->context->systemConfigModel['storage']['common'] == "0" ? $this->commonStorage = FALSE : ($this->commonStorage = TRUE); $this->serverRepo = $this->context->serverRepository; $this->fileModel = $this->context->fileModel; }
protected function startup() { parent::startup(); $this->redakce = $this->getService('redakce'); dd($this->admin, 'admin'); }
protected function startup() { parent::startup(); $this->serverCmd = $this->context->serverCommander; $this->serverRepo = $this->context->serverRepository; }
protected function startup() { parent::startup(); $this->users = $this->context->users; $this->authenticator = $this->context->authenticator; }
protected function startup() { parent::startup(); $this->config = $this->context->systemConfigModel->getConfig(); $this->serverRepo = $this->context->serverRepository; }
protected function startup() { parent::startup(); dd($this->admin, 'admin'); // $this->template->admin = $this->admin; }