From 88f799be6f458f71f9df87e05d24273f9a0058b9 Mon Sep 17 00:00:00 2001 From: Jozef Selesi Date: Fri, 21 Nov 2008 21:07:36 +0000 Subject: Fixed a bug in the REST controller dispatcher and added a test case that excercises it. --- core/controllers/rest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/controllers/rest.php') 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(); } -- cgit v1.2.3