summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2010-06-19 10:24:26 -0700
committerBharat Mediratta <bharat@menalto.com>2010-06-19 10:24:26 -0700
commitfa404589d662bc4f304f05596b8cb563c715c3f2 (patch)
tree20cbfc9b6b59971b87fe8cbb523bc714123b2f5e
parent9b788674275c843947d44934a50dd395b515737a (diff)
Oops. Fix up a bad instance of $user in rest::access_key() introduced
in my last change.
-rw-r--r--modules/rest/helpers/rest.php2
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();
}