translate nextcloud share types to OCM share types
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
This commit is contained in:
parent
8bc0de3469
commit
4c00c80a83
|
@ -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';
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue