summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-04-10 11:17:33 +0200
committerMorris Jobke <hey@morrisjobke.de>2015-05-06 12:14:34 +0200
commit2c656b0e4c7b4774815ec06c37f22c2bc14d3ead (patch)
treeb9f48df2237b756e35fdae66ca4b6e8ea7287b52 /lib
parent9c44e7bfb813dfbfe77c99d64b49fc0bb45f6b0f (diff)
downloadnextcloud-server-2c656b0e4c7b4774815ec06c37f22c2bc14d3ead.tar.gz
nextcloud-server-2c656b0e4c7b4774815ec06c37f22c2bc14d3ead.zip
Fix singe user mode on public.php - take two
Diffstat (limited to 'lib')
-rw-r--r--lib/base.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/base.php b/lib/base.php
index 14e2b4fe1ff..1714bd1e5ef 100644
--- a/lib/base.php
+++ b/lib/base.php
@@ -260,7 +260,7 @@ class OC {
}
}
- public static function checkSingleUserMode() {
+ public static function checkSingleUserMode($lockIfNoUserLoggedIn = false) {
if (!\OCP\Config::getSystemValue('singleuser', false)) {
return;
}
@@ -270,6 +270,10 @@ class OC {
if ($group->inGroup($user)) {
return;
}
+ } else {
+ if(!$lockIfNoUserLoggedIn) {
+ return;
+ }
}
// send http status 503
header('HTTP/1.1 503 Service Temporarily Unavailable');