Catch the ForbiddenException to make sure it gets handled
This commit is contained in:
parent
7f3bfeffe2
commit
c433218aa1
|
@ -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;
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue