/** * start PACS * @return void */ public function handleStartPacs() { if (!$this->user->isAllowed("server", "edit")) { $this->flashMessage(_("You are not allowed to do this action.", "danger")); $this->redirect("this"); } try { $result = $this->pacs->start(); } catch (ServiceAdminException $exc) { $this->flashMessage($exc->getMessage(), "danger"); $this->redirect("this"); } $this->flashMessage($result, "success"); $this->redirect("this"); return; }