mirror of
https://github.com/espocrm/espocrm.git
synced 2026-07-01 08:26:04 +00:00
maintenanceMode param
This commit is contained in:
@@ -180,6 +180,10 @@ class Auth
|
||||
return;
|
||||
}
|
||||
|
||||
if (!$user->isAdmin() && $this->getConfig()->get('maintenanceMode')) {
|
||||
throw new \Espo\Core\Exceptions\ServiceUnavailable("Application is in maintenance mode.");
|
||||
}
|
||||
|
||||
if (!$user->isActive()) {
|
||||
$GLOBALS['log']->info("AUTH: Trying to login as user '".$user->get('userName')."' which is not active.");
|
||||
$this->logDenied($authLogRecord, 'INACTIVE_USER');
|
||||
|
||||
Reference in New Issue
Block a user