Don't return true on requiresAuth if screen_name==='0'
This commit is contained in:
parent
13cf744fb3
commit
2938b3e960
@ -74,11 +74,8 @@ class ApiBareAuthAction extends ApiAuthAction
|
|||||||
}
|
}
|
||||||
|
|
||||||
// check whether a user has been specified somehow
|
// check whether a user has been specified somehow
|
||||||
$id = $this->arg('id');
|
if (!$this->arg('id') && !$this->arg('user_id')
|
||||||
$user_id = $this->arg('user_id');
|
&& mb_strlen($this->arg('screen_name'))===0) {
|
||||||
$screen_name = $this->arg('screen_name');
|
|
||||||
|
|
||||||
if (empty($id) && empty($user_id) && empty($screen_name)) {
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user