diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2010-01-02 16:55:06 -0800 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2010-01-02 16:55:06 -0800 |
commit | 5b9801092b3c347161f9e3b8069e05945a5010d2 (patch) | |
tree | 170cf04d535d43a7d9180c821cdeca43d5520d08 /modules/rest/helpers | |
parent | 07f8e256cf140c41e7eaf293c6c41b31aff8c661 (diff) |
Remove the Rest_Exception::trigger method.
Diffstat (limited to 'modules/rest/helpers')
-rw-r--r-- | modules/rest/helpers/rest.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/modules/rest/helpers/rest.php b/modules/rest/helpers/rest.php index 00790e6b..be0644f2 100644 --- a/modules/rest/helpers/rest.php +++ b/modules/rest/helpers/rest.php @@ -92,12 +92,10 @@ class rest_Core { if ($key->loaded()) { $user = identity::lookup_user($key->user_id); if (empty($user)) { - Rest_Exception::trigger(403, "Forbidden", $log_message, - "User not found: {$key->user_id}"); + throw new Rest_Exception(403, "Forbidden"); } } else { - Rest_Exception::trigger(403, "Forbidden", $log_message, - "Invalid user access token supplied: {$key->user_id}"); + throw new Rest_Exception(403, "Forbidden"); } } identity::set_active_user($user); |