summaryrefslogtreecommitdiff
path: root/modules/rest/helpers
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2010-03-08 09:46:13 -0800
committerTim Almdal <tnalmdal@shaw.ca>2010-03-08 09:46:13 -0800
commit8715f602bd266d41a7f084df576d2446846a328b (patch)
tree8986763f126199e5e5ca28123419fb21d7b71362 /modules/rest/helpers
parent1c022a5c84e53e247dafe6decffd5d3a96aba576 (diff)
parentbe580c9554602c02247fbc2f7401965b9ed00f0b (diff)
Merge branch 'master' into talmdal_dev
Diffstat (limited to 'modules/rest/helpers')
-rw-r--r--modules/rest/helpers/rest.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/rest/helpers/rest.php b/modules/rest/helpers/rest.php
index cd962057..7440350f 100644
--- a/modules/rest/helpers/rest.php
+++ b/modules/rest/helpers/rest.php
@@ -39,8 +39,7 @@ class rest_Core {
static function set_active_user($access_token) {
if (empty($access_token)) {
- identity::set_active_user(identity::guest());
- return;
+ throw new Rest_Exception("Forbidden", 403);
}
$key = ORM::factory("user_access_token")