From a8894d2557a33f26fdb12ae3dc821208c44bd1f7 Mon Sep 17 00:00:00 2001 From: Thomas Hufschmidt Date: Thu, 8 Aug 2024 11:32:34 +0200 Subject: [PATCH] 41874: Cron.php does not work when account has IP restriction. --- .../classes/Frontend/class.ilAuthFrontendCLI.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Services/Authentication/classes/Frontend/class.ilAuthFrontendCLI.php b/Services/Authentication/classes/Frontend/class.ilAuthFrontendCLI.php index b74013f23925..e042cfd89386 100644 --- a/Services/Authentication/classes/Frontend/class.ilAuthFrontendCLI.php +++ b/Services/Authentication/classes/Frontend/class.ilAuthFrontendCLI.php @@ -26,4 +26,12 @@ */ class ilAuthFrontendCLI extends ilAuthFrontend implements ilAuthFrontendInterface { + /** + * This overwrites ilAuthFrontend::checkIp used in ilAuthFrontend::authenticate + * since CLI does not set $_SERVER['REMOTE_ADDR']! + */ + protected function checkIp(ilObjUser $user): bool # + { + return true; + } }