Merge pull request #6189 from nextcloud/circle-token

link to getShareByToken
This commit is contained in:
Morris Jobke 2017-08-26 18:26:12 +02:00 committed by GitHub
commit 92292dc06a

View file

@ -1159,6 +1159,15 @@ class Manager implements IManager {
}
}
if ($share === null && $this->shareProviderExists(\OCP\Share::SHARE_TYPE_CIRCLE)) {
try {
$provider = $this->factory->getProviderForType(\OCP\Share::SHARE_TYPE_CIRCLE);
$share = $provider->getShareByToken($token);
} catch (ProviderException $e) {
} catch (ShareNotFound $e) {
}
}
if ($share === null) {
throw new ShareNotFound($this->l->t('The requested share does not exist anymore'));
}