summaryrefslogtreecommitdiff
path: root/modules/rest/controllers
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-12-09 08:41:38 -0800
committerTim Almdal <tnalmdal@shaw.ca>2009-12-09 08:41:38 -0800
commit367f2218f6bc278a7d0bd870e03a5d631155871a (patch)
treef5a8d428ca8c736b9b25273ee043e2e57536ac22 /modules/rest/controllers
parent3c30d595ae6a9a82e06f5427150d3667f00ef695 (diff)
Use the relative url cache to look up resources instead of the relative path. This allows us to forego the extension as part of the REST url. As well, urls are consistent between normal usage and rest usage.
Diffstat (limited to 'modules/rest/controllers')
-rw-r--r--modules/rest/controllers/rest.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/rest/controllers/rest.php b/modules/rest/controllers/rest.php
index 1ec24493..577d8aeb 100644
--- a/modules/rest/controllers/rest.php
+++ b/modules/rest/controllers/rest.php
@@ -34,6 +34,7 @@ class Rest_Controller extends Controller {
print rest::forbidden("Invalid password for '{$request->user}'.");
return;
}
+
$key = ORM::factory("user_access_token")
->where("user_id", $user->id)
->find();