Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down Expand Up @@ -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();
}
}
Loading