Merge pull request #22232 from nextcloud/backport/22217/stable19
[stable19] Add app config option to disable "Email was changed by admin" activity
This commit is contained in:
commit
7e16867b29
|
@ -198,6 +198,9 @@ class Hooks {
|
|||
$event->setAuthor($actor->getUID())
|
||||
->setSubject($subject);
|
||||
} else {
|
||||
if ($this->config->getAppValue('settings', 'disable_activity.email_address_changed_by_admin', 'no') === 'yes') {
|
||||
return;
|
||||
}
|
||||
$text = $this->l->t('Your email address on %s was changed by an administrator.', [$instanceUrl]);
|
||||
$event->setSubject(Provider::EMAIL_CHANGED);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue