$header was always true due to previous if statement

This commit is contained in:
Mikael Nordfeldth 2014-11-10 11:59:01 +01:00
parent e91deb683f
commit 17647dc3ff

View File

@ -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