From 922fe365b09723f231f3694f050fcc93e393aaca Mon Sep 17 00:00:00 2001 From: Carsten Schmitz Date: Tue, 13 Sep 2022 15:42:56 +0200 Subject: [PATCH] Fixed issue: User creation email was sent by current admin, not by siteadmin --- application/models/services/PasswordManagement.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/application/models/services/PasswordManagement.php b/application/models/services/PasswordManagement.php index 594870feb94..467a3fb6282 100644 --- a/application/models/services/PasswordManagement.php +++ b/application/models/services/PasswordManagement.php @@ -238,8 +238,6 @@ private function sendAdminMail($type = self::EMAIL_TYPE_REGISTRATION): \LimeMail $emailType = "addadminuser"; - $oCurrentlyLoggedInUser = \User::model()->findByPk(\Yii::app()->user->id); - $mailer = new \LimeMailer(); $mailer->addAddress($this->user->email, $this->user->full_name); $mailer->Subject = $subject;