/** * Deletes the given user */ public function deleteAction() { throw new NotImplementedException('Prebill delete not implemented'); // Try to load the chosen user $id = $this->getRequest()->getParam('id'); $preBill = $this->_preBillSrv->load($id, \App::getOrgUserLogged()); if (empty($preBill)) { throw new NotFoundException('PreBill ' . $id . ' not found', 404); } // Check permissions $this->_helper->allowed('delete', $preBill); // Remove the user try { $this->_preBillSrv->delete($id); } catch (Exception $e) { throw new InvalidArgumentException($e->getMessage(), null, $e); } $this->view->data = true; }