From fc3fd3321df5e116975bc6c447768f7d8180b87e Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Sat, 13 Dec 2008 07:49:27 +0000 Subject: Add a permissions check to determine if the active user has edit permission on the item in order to display the tag add form --- modules/tag/controllers/tags.php | 2 -- 1 file changed, 2 deletions(-) (limited to 'modules/tag/controllers') diff --git a/modules/tag/controllers/tags.php b/modules/tag/controllers/tags.php index 304d9bd0..7b16f751 100644 --- a/modules/tag/controllers/tags.php +++ b/modules/tag/controllers/tags.php @@ -51,7 +51,6 @@ class Tags_Controller extends REST_Controller { } public function _create($tag) { - // @todo: check permissions $form = tag::get_add_form($this->input->post('item_id')); if ($form->validate()) { $item = ORM::factory("item", $this->input->post("item_id")); @@ -63,7 +62,6 @@ class Tags_Controller extends REST_Controller { rest::http_location(url::site("tags/{$tag->id}")); } - // @todo Return appropriate HTTP status code indicating error. print $form; } -- cgit v1.2.3