[Web] remove keycloak sync disabled warning

This commit is contained in:
FreddleSpl0it 2023-08-07 09:18:36 +02:00
parent ff4b4b4b61
commit 66af9b82c0
No known key found for this signature in database
GPG Key ID: 00E14E7634F4BEC5
1 changed files with 1 additions and 2 deletions

View File

@ -73,7 +73,6 @@ $_SESSION['acl']['mailbox_relayhost'] = "1";
$iam_provider = identity_provider('init');
$iam_settings = identity_provider('get');
if (intval($iam_settings['periodic_sync']) != 1 && $iam_settings['import_users'] != 1) {
logMsg("warning", "IAM Sync is disabled");
session_destroy();
exit;
}
@ -91,7 +90,7 @@ if (file_exists($lock_file)) {
$last_execution = $lock_file_parts[1];
$elapsed_time = (time() - $last_execution) / 60;
if ($elapsed_time < intval($iam_settings['sync_interval'])) {
logMsg("warning", "Sync Interval not ready (".number_format((float)$elapsed_time, 2, '.', '')."min / ".$iam_settings['sync_interval']."min)");
logMsg("warning", "Sync not ready (".number_format((float)$elapsed_time, 2, '.', '')."min / ".$iam_settings['sync_interval']."min)");
session_destroy();
exit;
}