Commit 17647dc3 authored by mmn's avatar mmn

$header was always true due to previous if statement

parent e91deb68
......@@ -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
......
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