From: Evan Prodromou Date: Wed, 25 May 2011 17:04:35 +0000 (-0400) Subject: set the current user in api actions X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a838891c0ebf271a71e367975a778d2bc35b75ff;p=quix0rs-gnu-social.git set the current user in api actions --- diff --git a/lib/apiauth.php b/lib/apiauth.php index 42d32dd624..1e2a6101d6 100644 --- a/lib/apiauth.php +++ b/lib/apiauth.php @@ -204,6 +204,8 @@ class ApiAuthAction extends ApiAction } } $this->auth_user = $user; + global $_cur; + $_cur = $this->auth_user; Event::handle('EndSetApiUser', array($user)); }