From 17647dc3ffb97f1f1cd37da978a3d80b3475cf00 Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Mon, 10 Nov 2014 11:59:01 +0100 Subject: [PATCH] $header was always true due to previous if statement --- lib/apiauthaction.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/apiauthaction.php b/lib/apiauthaction.php index 683d42e705..a7b212d79a 100644 --- a/lib/apiauthaction.php +++ b/lib/apiauthaction.php @@ -310,7 +310,7 @@ class ApiAuthAction extends ApiAction // By default, basic auth users have rw access $this->access = self::READ_WRITE; - if (!$this->auth_user instanceof User && ($required || isset($_SERVER['PHP_AUTH_USER']))) { + if (!$this->auth_user instanceof User && isset($_SERVER['PHP_AUTH_USER'])) { $msg = sprintf( "basic auth nickname = %s", $this->auth_user_nickname -- 2.39.5