summaryrefslogtreecommitdiffstats
path: root/apps/dav/lib
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2016-06-01 16:17:57 +0200
committerJoas Schilling <nickvergessen@owncloud.com>2016-06-01 16:17:57 +0200
commit942e946f066db0437d4c6a371f4c1e5e2f350207 (patch)
tree9102689828528c85c88d057664ba6454af3ab4ac /apps/dav/lib
parent7b4459d28d40523c70ec05a733e158f2c14faac4 (diff)
downloadnextcloud-server-942e946f066db0437d4c6a371f4c1e5e2f350207.tar.gz
nextcloud-server-942e946f066db0437d4c6a371f4c1e5e2f350207.zip
Catch the ForbiddenException to make sure it gets handled
Diffstat (limited to 'apps/dav/lib')
-rw-r--r--apps/dav/lib/Connector/Sabre/FilesPlugin.php3
1 files changed, 3 insertions, 0 deletions
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;
});