mirror of
https://github.com/nextcloud/server.git
synced 2026-05-26 19:32:28 -04:00
Merge pull request #22233 from nextcloud/backport/22217/stable18
[stable18] Add app config option to disable "Email was changed by admin" activity
This commit is contained in:
commit
d9186601d3
1 changed files with 3 additions and 0 deletions
|
|
@ -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 a new issue