Skip to content

Commit 296e296

Browse files
author
Oleksandr Gorkun
committed
MAGETWO-92720: E-mail admin users when a new administrator is created.
1 parent 82ef9e8 commit 296e296

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/code/Magento/User/Model/User.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,6 +434,7 @@ public function sendPasswordResetConfirmationEmail()
434434
/**
435435
* Send email to when password is resetting
436436
*
437+
* @throws NotificationExceptionInterface
437438
* @return $this
438439
* @deprecated 100.1.0
439440
*/
@@ -457,7 +458,7 @@ public function sendNotificationEmailsIfRequired()
457458
$this->notificator->sendCreated($this);
458459
} elseif ($changes = $this->createChangesDescriptionString()) {
459460
//User changed.
460-
$this->sendUserNotificationEmail($changes);
461+
$this->notificator->sendUpdated($this, explode(', ', $changes));
461462
}
462463

463464
return $this;

0 commit comments

Comments
 (0)