Ejemplo n.º 1
0
 protected function startup()
 {
     parent::startup();
     $this->taskLists = $this->context->taskLists;
     $this->tasks = $this->context->tasks;
     $this->users = $this->context->users;
 }
Ejemplo n.º 2
0
 protected function startup()
 {
     parent::startup();
     if (!$this->user->isAllowed('system')) {
         $this->flashMessage('Nemáte oprávnění pro přístup!', 'error');
         $this->redirect('Homepage:');
     }
 }
Ejemplo n.º 3
0
 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);
 }
Ejemplo n.º 4
0
 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:');
     }
 }
Ejemplo n.º 5
0
 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;
 }
Ejemplo n.º 6
0
 protected function startup()
 {
     parent::startup();
     $this->redakce = $this->getService('redakce');
     dd($this->admin, 'admin');
 }
Ejemplo n.º 7
0
 protected function startup()
 {
     parent::startup();
     $this->serverCmd = $this->context->serverCommander;
     $this->serverRepo = $this->context->serverRepository;
 }
Ejemplo n.º 8
0
 protected function startup()
 {
     parent::startup();
     $this->users = $this->context->users;
     $this->authenticator = $this->context->authenticator;
 }
Ejemplo n.º 9
0
 protected function startup()
 {
     parent::startup();
     $this->config = $this->context->systemConfigModel->getConfig();
     $this->serverRepo = $this->context->serverRepository;
 }
Ejemplo n.º 10
0
 protected function startup()
 {
     parent::startup();
     dd($this->admin, 'admin');
     //        $this->template->admin = $this->admin;
 }