Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2021-01-29 17:59:41 +0300
committerThomas Citharel <tcit@tcit.fr>2021-05-26 12:19:58 +0300
commite4b5645883d89ee3aca4105c1bde6ae4939f927c (patch)
tree45350e3f1e13260053240037cdf2a43ff11aa236 /apps/files_sharing/lib
parent903b99bd9310c7255d4ea339c79a52a779f1a7cc (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.php4
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;
}