We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 2938b3e9 authored by mattl's avatar mattl

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