diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2018-05-18 12:29:10 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2018-06-20 08:53:37 +0200 |
commit | 53a1b9a84e452bebfc701c93f32f44aefea87a2f (patch) | |
tree | f9c5a9a44758a0ec5368acd953272d7fc98c9c64 /apps/files_sharing/lib/Middleware | |
parent | f36ef8ca80d92727857fe398491fce6eb17ee996 (diff) | |
download | nextcloud-server-53a1b9a84e452bebfc701c93f32f44aefea87a2f.tar.gz nextcloud-server-53a1b9a84e452bebfc701c93f32f44aefea87a2f.zip |
Quick hack to make the files sharing app work with this properly
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps/files_sharing/lib/Middleware')
-rw-r--r-- | apps/files_sharing/lib/Middleware/SharingCheckMiddleware.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/files_sharing/lib/Middleware/SharingCheckMiddleware.php b/apps/files_sharing/lib/Middleware/SharingCheckMiddleware.php index 4b630d0a8da..4ae63f63837 100644 --- a/apps/files_sharing/lib/Middleware/SharingCheckMiddleware.php +++ b/apps/files_sharing/lib/Middleware/SharingCheckMiddleware.php @@ -102,12 +102,14 @@ class SharingCheckMiddleware extends Middleware { !$this->externalSharesChecks()) { throw new S2SException('Federated sharing not allowed'); } else if ($controller instanceof ShareController) { + /* $token = $this->request->getParam('token'); $share = $this->shareManager->getShareByToken($token); if ($share->getShareType() === \OCP\Share::SHARE_TYPE_LINK && !$this->isLinkSharingEnabled()) { throw new NotFoundException('Link sharing is disabled'); } + */ } } |