From c433218aa1fb428ae88f49a3b291cd294061c5e1 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Wed, 1 Jun 2016 16:30:37 +0200 Subject: [PATCH] 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 e973b4e8682..bf9bee02578 100644 --- a/apps/dav/lib/connector/sabre/filesplugin.php +++ b/apps/dav/lib/connector/sabre/filesplugin.php @@ -27,6 +27,7 @@ namespace OCA\DAV\Connector\Sabre; +use OCP\Files\ForbiddenException; use Sabre\DAV\Exception\NotFound; use Sabre\DAV\IFile; use \Sabre\DAV\PropFind; @@ -257,6 +258,8 @@ class FilesPlugin extends \Sabre\DAV\ServerPlugin { } } catch (StorageNotAvailableException $e) { return false; + } catch (ForbiddenException $e) { + return false; } return false; });