translate nextcloud share types to OCM share types

Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
This commit is contained in:
Bjoern Schiessle 2018-06-29 11:07:57 +02:00
parent 8bc0de3469
commit 4c00c80a83
No known key found for this signature in database
GPG Key ID: 2378A753E2BF04F6
1 changed files with 5 additions and 1 deletions

View File

@ -204,7 +204,11 @@ class CloudFederationShare implements ICloudFederationShare {
* @since 14.0.0 * @since 14.0.0
*/ */
public function setShareType($shareType) { 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';
}
} }
/** /**