Catch the ForbiddenException to make sure it gets handled

This commit is contained in:
Joas Schilling 2016-06-01 16:30:37 +02:00 committed by Roeland Jago Douma
parent 7f3bfeffe2
commit c433218aa1
No known key found for this signature in database
GPG Key ID: 1E152838F164D13B
1 changed files with 3 additions and 0 deletions

View File

@ -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;
});