Reimplement deletion of projects

This commit is contained in:
Karsten Heiken
2011-07-28 20:10:49 +02:00
parent 273bfbd1e0
commit 18e5bf7c12

View File

@@ -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));
}
}