summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorBjoern Schiessle <bjoern@schiessle.org>2018-06-29 11:07:57 +0200
committerBjoern Schiessle <bjoern@schiessle.org>2018-07-11 10:11:45 +0200
commit4c00c80a838a29205780055d9451b3cd9749b14c (patch)
tree1c36d164208b54a99a9e2f90d4bdfe318c0f9cdf /lib
parent8bc0de3469422b7e31db0da7bb5716b165f0b562 (diff)
downloadnextcloud-server-4c00c80a838a29205780055d9451b3cd9749b14c.tar.gz
nextcloud-server-4c00c80a838a29205780055d9451b3cd9749b14c.zip
translate nextcloud share types to OCM share types
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Federation/CloudFederationShare.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/private/Federation/CloudFederationShare.php b/lib/private/Federation/CloudFederationShare.php
index 0c2795188f0..e0360d78cb2 100644
--- a/lib/private/Federation/CloudFederationShare.php
+++ b/lib/private/Federation/CloudFederationShare.php
@@ -204,7 +204,11 @@ class CloudFederationShare implements ICloudFederationShare {
* @since 14.0.0
*/
public function setShareType($shareType) {
- $this->share['shareType'] = $shareType;
+ if ($shareType === 'group' || $shareType === \OCP\Share::SHARE_TYPE_REMOTE_GROUP) {
+ $this->share['shareType'] = 'group';
+ } else {
+ $this->share['shareType'] = 'user';
+ }
}
/**