Catch the ForbiddenException to make sure it gets handled

remotes/origin/propagator-batching
Joas Schilling 2016-06-01 16:17:57 +07:00
parent 7b4459d28d
commit 942e946f06
No known key found for this signature in database
GPG Key ID: 70A0B324C41C0946
1 changed files with 3 additions and 0 deletions

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