}
}
- public static function checkSingleUserMode() {
+ public static function checkSingleUserMode($lockIfNoUserLoggedIn = false) {
if (!\OCP\Config::getSystemValue('singleuser', false)) {
return;
}
if ($group->inGroup($user)) {
return;
}
+ } else {
+ if(!$lockIfNoUserLoggedIn) {
+ return;
+ }
}
// send http status 503
header('HTTP/1.1 503 Service Temporarily Unavailable');
}
OC::checkMaintenanceMode();
- OC::checkSingleUserMode();
+ OC::checkSingleUserMode(true);
$pathInfo = OC_Request::getPathInfo();
if (!$pathInfo && !isset($_GET['service'])) {
header('HTTP/1.0 404 Not Found');