mirror of
https://github.com/nextcloud/server.git
synced 2026-04-22 23:03:00 -04:00
Merge pull request #6189 from nextcloud/circle-token
link to getShareByToken
This commit is contained in:
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'));
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue