diff options
author | Joas Schilling <coding@schilljs.com> | 2021-01-29 15:59:41 +0100 |
---|---|---|
committer | Thomas Citharel <tcit@tcit.fr> | 2021-05-26 11:19:58 +0200 |
commit | e4b5645883d89ee3aca4105c1bde6ae4939f927c (patch) | |
tree | 45350e3f1e13260053240037cdf2a43ff11aa236 /apps | |
parent | 903b99bd9310c7255d4ea339c79a52a779f1a7cc (diff) | |
download | nextcloud-server-e4b5645883d89ee3aca4105c1bde6ae4939f927c.tar.gz nextcloud-server-e4b5645883d89ee3aca4105c1bde6ae4939f927c.zip |
Also make other shares listen to the "Allow sharing with groups"
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps')
-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; } |