From f591195955d2ab189cc4753c3cdcaafa1012de49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Noack?= Date: Wed, 19 Feb 2025 10:12:25 +0000 Subject: Resolve #5263 "MAINTENANCE_MODE_ENABLE funktioniert nicht mehr" Closes #5263 Merge request studip/studip!3947 --- lib/authentication/Manager.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/authentication/Manager.php b/lib/authentication/Manager.php index fe5dff8..0128d1e 100644 --- a/lib/authentication/Manager.php +++ b/lib/authentication/Manager.php @@ -110,11 +110,11 @@ class Manager $this->auth['uid'] = null; } - $maintenance_mode = Config::get()->getValue('MAINTENANCE_MODE'); + $maintenance_mode = Config::get()->getValue('MAINTENANCE_MODE_ENABLE'); //check if the user got kicked meanwhile, or if user is locked out $user = null; - if (!empty($this->auth['uid']) && !in_array($this->auth['uid'], ['nobody'])) { + if (!empty($this->auth['uid']) && $this->auth['uid'] != 'nobody') { if (isset($GLOBALS['user']) && $GLOBALS['user']->id === $this->auth['uid']) { $user = User::findCurrent(); } else { -- cgit v1.0