Sfoglia il codice sorgente

Catch the ForbiddenException to make sure it gets handled

tags/v9.0.1beta2
Joas Schilling 8 anni fa
parent
commit
942e946f06
Nessun account collegato all'indirizzo email del committer
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  1. 3
    0
      apps/dav/lib/Connector/Sabre/FilesPlugin.php

+ 3
- 0
apps/dav/lib/Connector/Sabre/FilesPlugin.php Vedi File

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

Loading…
Annulla
Salva