From 6d1135cf2e444e1a1db9f11a678f8227e87177e4 Mon Sep 17 00:00:00 2001 From: mjansen Date: Wed, 8 Jul 2026 12:11:37 +0200 Subject: [PATCH] [FIX] Auth: Prevent resetting mail options for ECS users --- .../ECS/classes/class.ilAuthProviderECS.php | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/components/ILIAS/WebServices/ECS/classes/class.ilAuthProviderECS.php b/components/ILIAS/WebServices/ECS/classes/class.ilAuthProviderECS.php index 62609bb8d195..9a32fe8531f1 100755 --- a/components/ILIAS/WebServices/ECS/classes/class.ilAuthProviderECS.php +++ b/components/ILIAS/WebServices/ECS/classes/class.ilAuthProviderECS.php @@ -401,10 +401,6 @@ protected function createUser(ilECSUser $user): string $this->getLogger()->info('Created new remote user with usr_id: ' . $user->getImportId()); - // Send Mail - #$this->sendNotification($userObj); - $this->resetMailOptions($userObj->getId()); - return $userObj->getLogin(); } @@ -436,20 +432,7 @@ protected function updateUser(ilECSUser $user, int $a_local_user_id): string ); } - $this->resetMailOptions($a_local_user_id); - $this->getLogger()->debug('Finished update of remote user with usr_id: ' . $user->getImportId()); return $user_obj->getLogin(); } - - /** - * Reset mail options to "local only" - * - */ - protected function resetMailOptions(int $a_usr_id): void - { - $options = new ilMailOptions($a_usr_id); - $options->setIncomingType(ilMailOptions::INCOMING_LOCAL); - $options->updateOptions(); - } }