maintenanceMode param

This commit is contained in:
yuri
2018-08-23 12:41:03 +03:00
parent ee2182638a
commit fb9100efdc

View File

@@ -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');