Add app config option to disable "Email was changed by admin" email
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
This commit is contained in:
parent
138f47a1b9
commit
53fab3fe5f
|
@ -182,6 +182,9 @@ class Hooks {
|
|||
$event->setAuthor($actor->getUID())
|
||||
->setSubject($subject);
|
||||
} else {
|
||||
if ($this->config->getAppValue('settings', 'disable_email.email_address_changed_by_admin', 'no') === 'yes') {
|
||||
return;
|
||||
}
|
||||
$text = $l->t('Your email address on %s was changed by an administrator.', [$instanceUrl]);
|
||||
$event->setSubject(Provider::EMAIL_CHANGED);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue