Merge pull request #6243 from nextcloud/stable12-circles-token

using CircleProvider on token
This commit is contained in:
Roeland Jago Douma 2017-08-26 13:49:25 +02:00 committed by GitHub
commit f29384a057
1 changed files with 9 additions and 0 deletions

View File

@ -1188,6 +1188,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'));
}