Permalink
Browse files

Oops. Fix up a bad instance of $user in rest::access_key() introduced

in my last change.
  • Loading branch information...
1 parent 9b78867 commit fa404589d662bc4f304f05596b8cb563c715c3f2 @bharat bharat committed Jun 19, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 modules/rest/helpers/rest.php
@@ -72,7 +72,7 @@ static function access_key() {
->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();
}

0 comments on commit fa40458

Please sign in to comment.