From 24370604835af3949c350f94c56bea0688ba768d Mon Sep 17 00:00:00 2001 From: Karsten Heiken Date: Sun, 31 Jul 2011 14:51:13 +0200 Subject: [PATCH] Create temporary method to get own projects TODO: Change this to the actual user after we implemented sessions --- application/models/project.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/application/models/project.php b/application/models/project.php index fcb5f45..909156c 100644 --- a/application/models/project.php +++ b/application/models/project.php @@ -13,8 +13,9 @@ class Project extends CI_Model { * * @return array The user's projects. */ - private function getOwn() { - $query = $this->db->where(array('owner' => $this->session->userdata('user_id'))) + public function getOwn() { + // TODO: Session: $query = $this->db->where(array('owner' => $this->session->userdata('user_id'))) + $query = $this->db->where(array('owner' => '215cd70f310ae6ae')) ->order_by('lastaccess', 'desc') ->get('projects'); return $query->result_array();