diff options
Diffstat (limited to 'core/controllers/items.php')
-rw-r--r-- | core/controllers/items.php | 3 |
1 files changed, 1 insertions, 2 deletions
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": |