diff options
| author | André Noack <noack@data-quest.de> | 2025-02-19 10:12:25 +0000 |
|---|---|---|
| committer | André Noack <noack@data-quest.de> | 2025-02-19 10:12:25 +0000 |
| commit | f591195955d2ab189cc4753c3cdcaafa1012de49 (patch) | |
| tree | 05563c90c341904bb3d9aee7e5a735f84d3d8056 /lib/authentication/Manager.php | |
| parent | 1968dbad546efef907c5fa8525d2dcf615ef705d (diff) | |
Resolve #5263 "MAINTENANCE_MODE_ENABLE funktioniert nicht mehr"
Closes #5263
Merge request studip/studip!3947
Diffstat (limited to 'lib/authentication/Manager.php')
| -rw-r--r-- | lib/authentication/Manager.php | 4 |
1 files 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 { |
