using CircleProvider on token
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
This commit is contained in:
parent
4cf7c351ea
commit
0d4803e6dc
|
@ -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'));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue