/** * Deletes the given servicepack */ public function deleteAction() { $spId = $this->getRequest()->getParam('id'); $sp = $this->_spSrv->load($spId); if (empty($sp)) { throw new NotFoundException('ServicePack ' . $spId . ' not found', 404); } // Check permissions $this->_helper->allowed('delete', $sp); // Remove the user $this->_spSrv->delete($sp); $this->view->data = true; }