Merge pull request #6243 from nextcloud/stable12-circles-token
using CircleProvider on token
This commit is contained in:
commit
f29384a057
|
@ -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