using CircleProvider on token

Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
This commit is contained in:
Maxence Lange 2017-08-23 16:58:32 +02:00
parent 4cf7c351ea
commit 0d4803e6dc
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'));
}