diff options
author | Bharat Mediratta <bharat@menalto.com> | 2010-06-19 10:24:26 -0700 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2010-06-19 10:24:26 -0700 |
commit | fa404589d662bc4f304f05596b8cb563c715c3f2 (patch) | |
tree | 20cbfc9b6b59971b87fe8cbb523bc714123b2f5e /modules/rest/helpers/rest.php | |
parent | 9b788674275c843947d44934a50dd395b515737a (diff) |
Oops. Fix up a bad instance of $user in rest::access_key() introduced
in my last change.
Diffstat (limited to 'modules/rest/helpers/rest.php')
-rw-r--r-- | modules/rest/helpers/rest.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/rest/helpers/rest.php b/modules/rest/helpers/rest.php index 0bad58f6..bcb12d58 100644 --- a/modules/rest/helpers/rest.php +++ b/modules/rest/helpers/rest.php @@ -72,7 +72,7 @@ class rest_Core { ->find(); if (!$key->loaded()) { - $key->user_id = $user_id; + $key->user_id = identity::active_user()->id; $key->access_key = md5(md5(uniqid(mt_rand(), true) . access::private_key())); $key->save(); } |