diff options
author | Morris Jobke <hey@morrisjobke.de> | 2020-08-12 12:27:43 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2020-08-12 12:27:43 +0200 |
commit | 53fab3fe5fbf81c3f011d79c19347d87839b7c1c (patch) | |
tree | 1d6a49fc06af9cdb56c65aa57a3096343b441724 /apps/settings | |
parent | 138f47a1b980aaceb116b256b8ccf14f523e7e67 (diff) | |
download | nextcloud-server-53fab3fe5fbf81c3f011d79c19347d87839b7c1c.tar.gz nextcloud-server-53fab3fe5fbf81c3f011d79c19347d87839b7c1c.zip |
Add app config option to disable "Email was changed by admin" email
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'apps/settings')
-rw-r--r-- | apps/settings/lib/Hooks.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/settings/lib/Hooks.php b/apps/settings/lib/Hooks.php index b701934b084..78f7e28ed1c 100644 --- a/apps/settings/lib/Hooks.php +++ b/apps/settings/lib/Hooks.php @@ -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); } |