git.gnu.io has moved to IP address 209.51.188.249 -- please double check where you are logging in.

Commit 2938b3e9 authored by mmn's avatar mmn

Don't return true on requiresAuth if screen_name==='0'

parent 13cf744f
......@@ -74,11 +74,8 @@ class ApiBareAuthAction extends ApiAuthAction
}
// check whether a user has been specified somehow
$id = $this->arg('id');
$user_id = $this->arg('user_id');
$screen_name = $this->arg('screen_name');
if (empty($id) && empty($user_id) && empty($screen_name)) {
if (!$this->arg('id') && !$this->arg('user_id')
&& mb_strlen($this->arg('screen_name'))===0) {
return true;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment