diff options
author | Joas Schilling <coding@schilljs.com> | 2021-01-29 17:59:41 +0300 |
---|---|---|
committer | Thomas Citharel <tcit@tcit.fr> | 2021-05-26 12:19:58 +0300 |
commit | e4b5645883d89ee3aca4105c1bde6ae4939f927c (patch) | |
tree | 45350e3f1e13260053240037cdf2a43ff11aa236 /apps/files_sharing/lib | |
parent | 903b99bd9310c7255d4ea339c79a52a779f1a7cc (diff) |
Also make other shares listen to the "Allow sharing with groups"
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/files_sharing/lib')
-rw-r--r-- | apps/files_sharing/lib/Controller/ShareesAPIController.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/files_sharing/lib/Controller/ShareesAPIController.php b/apps/files_sharing/lib/Controller/ShareesAPIController.php index 8018f99e49a..571ea707e69 100644 --- a/apps/files_sharing/lib/Controller/ShareesAPIController.php +++ b/apps/files_sharing/lib/Controller/ShareesAPIController.php @@ -192,7 +192,9 @@ class ShareesAPIController extends OCSController { $shareTypes[] = IShare::TYPE_DECK; } } else { - $shareTypes[] = IShare::TYPE_GROUP; + if ($this->shareManager->allowGroupSharing()) { + $shareTypes[] = IShare::TYPE_GROUP; + } $shareTypes[] = IShare::TYPE_EMAIL; } |