From c3fc1cb7ec91783a7953486c8a83aa8008dd5406 Mon Sep 17 00:00:00 2001 From: Jozef Selesi Date: Thu, 20 Nov 2008 01:25:29 +0000 Subject: * Added HTTP status constants and helper functions to REST helper. * HTTP header setting in comment module now going through REST helper API. * Fixed items controller test. * Fixed user installer test. * Fixed _create() handling in the REST controller. * Fixed routing for edit and add forms. * Added some tests for the REST controller. * Set svn:eol-style to LF on a bunch of files. * Added preamble to MY_Forge.php. --- core/controllers/rest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/controllers') diff --git a/core/controllers/rest.php b/core/controllers/rest.php index 25f71299..f0fb5e5c 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