set the current user in api actions

This commit is contained in:
Evan Prodromou 2011-05-25 13:04:35 -04:00
parent 32f47004df
commit a838891c0e

View File

@ -204,6 +204,8 @@ class ApiAuthAction extends ApiAction
}
}
$this->auth_user = $user;
global $_cur;
$_cur = $this->auth_user;
Event::handle('EndSetApiUser', array($user));
}