summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing
diff options
context:
space:
mode:
authorBjoern Schiessle <bjoern@schiessle.org>2018-07-02 11:29:03 +0200
committerBjoern Schiessle <bjoern@schiessle.org>2018-07-11 10:11:47 +0200
commit2abc70563221457843346e452f916bf2b49a00ad (patch)
treeaf698d867dfeac7f74625963616e6f4f3aefa823 /apps/files_sharing
parent1d5a9c3f979b23bac98243ba2245a21bdff722c8 (diff)
downloadnextcloud-server-2abc70563221457843346e452f916bf2b49a00ad.tar.gz
nextcloud-server-2abc70563221457843346e452f916bf2b49a00ad.zip
start to get fed group shares into the share dialog
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
Diffstat (limited to 'apps/files_sharing')
-rw-r--r--apps/files_sharing/lib/Controller/ShareesAPIController.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/apps/files_sharing/lib/Controller/ShareesAPIController.php b/apps/files_sharing/lib/Controller/ShareesAPIController.php
index d25f24f6f72..c60e873b826 100644
--- a/apps/files_sharing/lib/Controller/ShareesAPIController.php
+++ b/apps/files_sharing/lib/Controller/ShareesAPIController.php
@@ -67,12 +67,14 @@ class ShareesAPIController extends OCSController {
'users' => [],
'groups' => [],
'remotes' => [],
+ 'remote_groups' => [],
'emails' => [],
'circles' => [],
],
'users' => [],
'groups' => [],
'remotes' => [],
+ 'remote_groups' => [],
'emails' => [],
'lookup' => [],
'circles' => [],
@@ -153,6 +155,10 @@ class ShareesAPIController extends OCSController {
$shareTypes[] = Share::SHARE_TYPE_REMOTE;
}
+ if ($this->isRemoteGroupSharingAllowed($itemType)) {
+ $shareTypes[] = Share::SHARE_TYPE_REMOTE_GROUP;
+ }
+
if ($this->shareManager->shareProviderExists(Share::SHARE_TYPE_EMAIL)) {
$shareTypes[] = Share::SHARE_TYPE_EMAIL;
}
@@ -216,6 +222,10 @@ class ShareesAPIController extends OCSController {
}
}
+ protected function isRemoteGroupSharingAllowed(string $itemType): bool {
+ return true;
+ }
+
/**
* Generates a bunch of pagination links for the current page