diff options
author | Morris Jobke <hey@morrisjobke.de> | 2020-08-20 08:02:33 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-20 08:02:33 +0200 |
commit | 208300865aafab6311b53bdc2cf5c631546c3484 (patch) | |
tree | ff5753bf711ab00c5c543b6ca2888ba4c0a703fe /lib | |
parent | 34bf219dbde5b00790b0ca0f6a33c4427fe3447a (diff) | |
parent | 15cbac0f32148f5f668d55e5c2548be9e6e8919b (diff) | |
download | nextcloud-server-208300865aafab6311b53bdc2cf5c631546c3484.tar.gz nextcloud-server-208300865aafab6311b53bdc2cf5c631546c3484.zip |
Merge pull request #22306 from nextcloud/backport/22300/stable18
[stable18] Allow to disable share emails
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()); |