summaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorMaxence Lange <maxence@artificial-owl.com>2017-08-20 15:21:58 +0200
committerMaxence Lange <maxence@artificial-owl.com>2017-08-20 15:21:58 +0200
commit0459c03696d5864910326af78935c222d3a77860 (patch)
treea9bbd04bf3eb37a29e42bc07aa60ea1021d96d21 /lib/private
parent8c458de4c2d51363205f974384b287e4d34870d1 (diff)
downloadnextcloud-server-0459c03696d5864910326af78935c222d3a77860.tar.gz
nextcloud-server-0459c03696d5864910326af78935c222d3a77860.zip
link to getShareByToken
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Diffstat (limited to 'lib/private')
-rw-r--r--lib/private/Share20/Manager.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/private/Share20/Manager.php b/lib/private/Share20/Manager.php
index ad78a0db745..d722b5c923a 100644
--- a/lib/private/Share20/Manager.php
+++ b/lib/private/Share20/Manager.php
@@ -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'));
}