Merge pull request #6189 from nextcloud/circle-token

link to getShareByToken
pull/6263/head
Morris Jobke 2017-08-26 18:26:12 +07:00 committed by GitHub
commit 92292dc06a
1 changed files with 9 additions and 0 deletions

@ -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'));
}