Set the current user on API calls
This commit is contained in:
parent
a838891c0e
commit
d7a16929b9
|
@ -204,6 +204,9 @@ class ApiAuthAction extends ApiAction
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$this->auth_user = $user;
|
$this->auth_user = $user;
|
||||||
|
// FIXME: setting the value returned by common_current_user()
|
||||||
|
// There should probably be a better method for this. common_set_user()
|
||||||
|
// does lots of session stuff.
|
||||||
global $_cur;
|
global $_cur;
|
||||||
$_cur = $this->auth_user;
|
$_cur = $this->auth_user;
|
||||||
Event::handle('EndSetApiUser', array($user));
|
Event::handle('EndSetApiUser', array($user));
|
||||||
|
|
Loading…
Reference in New Issue
Block a user