From a838891c0ebf271a71e367975a778d2bc35b75ff Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Wed, 25 May 2011 13:04:35 -0400 Subject: [PATCH] set the current user in api actions --- lib/apiauth.php | 2 ++ 1 file changed, 2 insertions(+) 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)); } -- 2.39.5