summaryrefslogtreecommitdiffstats
path: root/lib/private/Share20
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2016-12-20 08:52:31 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2016-12-20 08:52:46 +0100
commite9727440dd2f3bbde65ae125a6c47ad27aadca0b (patch)
tree29de838a64b61c72888324d47a9f136974523c89 /lib/private/Share20
parent5983c6846249c5fd55b24669a6b2603e90dc5206 (diff)
downloadnextcloud-server-e9727440dd2f3bbde65ae125a6c47ad27aadca0b.tar.gz
nextcloud-server-e9727440dd2f3bbde65ae125a6c47ad27aadca0b.zip
Only don't resolve public links
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib/private/Share20')
-rw-r--r--lib/private/Share20/Manager.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/private/Share20/Manager.php b/lib/private/Share20/Manager.php
index 591d904355d..ec1866f21ce 100644
--- a/lib/private/Share20/Manager.php
+++ b/lib/private/Share20/Manager.php
@@ -1053,12 +1053,11 @@ class Manager implements IManager {
* @throws ShareNotFound
*/
public function getShareByToken($token) {
- if(!$this->shareApiAllowLinks()) {
- throw new ShareNotFound();
- }
-
$share = null;
try {
+ if(!$this->shareApiAllowLinks()) {
+ throw new ShareNotFound();
+ }
$provider = $this->factory->getProviderForType(\OCP\Share::SHARE_TYPE_LINK);
$share = $provider->getShareByToken($token);
} catch (ProviderException $e) {