Skip to content

Commit

Permalink
41874: Cron.php does not work when account has IP restriction.
Browse files Browse the repository at this point in the history
  • Loading branch information
Hufschmidt authored and mjansenDatabay committed Aug 8, 2024
1 parent a055d7a commit e3daaaf
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

0 comments on commit e3daaaf

Please sign in to comment.