diff options
author | Jozef Selesi <jozefs@users.sourceforge.net> | 2008-11-21 21:07:36 +0000 |
---|---|---|
committer | Jozef Selesi <jozefs@users.sourceforge.net> | 2008-11-21 21:07:36 +0000 |
commit | 88f799be6f458f71f9df87e05d24273f9a0058b9 (patch) | |
tree | 5468c0b1268322fdd3aa49491ff8b7e739fd6e48 /core/controllers/rest.php | |
parent | 4f5e3ad6d58c40a44ee2c4da8ec15c4851e33095 (diff) |
Fixed a bug in the REST controller dispatcher and added a test case that excercises it.
Diffstat (limited to 'core/controllers/rest.php')
-rw-r--r-- | core/controllers/rest.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/controllers/rest.php b/core/controllers/rest.php index f0fb5e5c..c7429f5d 100644 --- a/core/controllers/rest.php +++ b/core/controllers/rest.php @@ -84,7 +84,7 @@ abstract class REST_Controller extends Controller { // @todo this needs security checks $id = $function; $resource = ORM::factory($this->resource_type, $id); - if (!$resource->loaded && !$request_method == "post") { + if (!$resource->loaded && $request_method != "post") { return Kohana::show_404(); } |