From 2cf3233f546dfa38521bd9ec280dbec9a9fb7612 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Fri, 12 Dec 2008 00:59:30 +0000 Subject: Get rid of all pseudo users and pseudo groups, while preserving all other functionality. This makes our user/group and access code fully consistent. --- core/controllers/items.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'core/controllers/items.php') diff --git a/core/controllers/items.php b/core/controllers/items.php index a5dd5f1e..efbfa8d9 100644 --- a/core/controllers/items.php +++ b/core/controllers/items.php @@ -51,8 +51,7 @@ class Items_Controller extends REST_Controller { public function _create($item) { // @todo Productionize this code // 1) Add security checks - $user = Session::instance()->get("user"); - $owner_id = $user ? $user->id : $item->owner_id; + $owner_id = user::active()->id; switch ($this->input->post("type")) { case "album": -- cgit v1.2.3