diff options
author | Bjoern Schiessle <bjoern@schiessle.org> | 2018-06-29 11:07:57 +0200 |
---|---|---|
committer | Bjoern Schiessle <bjoern@schiessle.org> | 2018-07-11 10:11:45 +0200 |
commit | 4c00c80a838a29205780055d9451b3cd9749b14c (patch) | |
tree | 1c36d164208b54a99a9e2f90d4bdfe318c0f9cdf /lib/private/Federation | |
parent | 8bc0de3469422b7e31db0da7bb5716b165f0b562 (diff) | |
download | nextcloud-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/private/Federation')
-rw-r--r-- | lib/private/Federation/CloudFederationShare.php | 6 |
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'; + } } /** |