From 942e946f066db0437d4c6a371f4c1e5e2f350207 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Wed, 1 Jun 2016 16:17:57 +0200 Subject: Catch the ForbiddenException to make sure it gets handled --- apps/dav/lib/Connector/Sabre/FilesPlugin.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/dav/lib/Connector/Sabre/FilesPlugin.php b/apps/dav/lib/Connector/Sabre/FilesPlugin.php index a1fb1bf0aee..a4e13709559 100644 --- a/apps/dav/lib/Connector/Sabre/FilesPlugin.php +++ b/apps/dav/lib/Connector/Sabre/FilesPlugin.php @@ -30,6 +30,7 @@ namespace OCA\DAV\Connector\Sabre; use OC\Files\View; use OCA\DAV\Upload\FutureFile; +use OCP\Files\ForbiddenException; use Sabre\DAV\Exception\Forbidden; use Sabre\DAV\Exception\NotFound; use Sabre\DAV\IFile; @@ -311,6 +312,8 @@ class FilesPlugin extends ServerPlugin { } } catch (StorageNotAvailableException $e) { return false; + } catch (ForbiddenException $e) { + return false; } return false; }); -- cgit v1.2.3