diff options
author | Joas Schilling <coding@schilljs.com> | 2020-08-19 09:03:58 +0200 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2020-08-19 19:28:31 +0000 |
commit | 15cbac0f32148f5f668d55e5c2548be9e6e8919b (patch) | |
tree | e1cf4da6220ef11207738332a91765d6811758d8 /lib | |
parent | 8a8ce8eb7d7d17c6eb7e5d5e7a2bf87970c5433d (diff) | |
download | nextcloud-server-15cbac0f32148f5f668d55e5c2548be9e6e8919b.tar.gz nextcloud-server-15cbac0f32148f5f668d55e5c2548be9e6e8919b.zip |
Allow to disable share emails
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Share20/Manager.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/private/Share20/Manager.php b/lib/private/Share20/Manager.php index c8ba04a4636..348e0207d2f 100644 --- a/lib/private/Share20/Manager.php +++ b/lib/private/Share20/Manager.php @@ -809,7 +809,8 @@ class Manager implements IManager { $this->dispatcher->dispatchTyped(new Share\Events\ShareCreatedEvent($share)); - if ($share->getShareType() === \OCP\Share::SHARE_TYPE_USER) { + if ($this->config->getSystemValueBool('sharing.enable_share_mail', true) + && $share->getShareType() === \OCP\Share::SHARE_TYPE_USER) { $mailSend = $share->getMailSend(); if($mailSend === true) { $user = $this->userManager->get($share->getSharedWith()); |