From 18e5bf7c12b83d3b9c681c7434e5e0c8b547195a Mon Sep 17 00:00:00 2001 From: Karsten Heiken Date: Thu, 28 Jul 2011 20:10:49 +0200 Subject: [PATCH] Reimplement deletion of projects --- application/models/project.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/application/models/project.php b/application/models/project.php index 2ed2e50..cb8fdfe 100644 --- a/application/models/project.php +++ b/application/models/project.php @@ -125,4 +125,14 @@ class Project extends CI_Model { else return FALSE; } + + /** + * Delete a project. + * + * There is no security check in here to verify if the user has the + * rights to do so. This needs to be done in the controller! + */ + public function delete($project_id) { + return $this->db->delete('projects', array('id' => $project_id)); + } } \ No newline at end of file