Explorar el Código

Allow dir-listing also when one child is blocked by access control

Signed-off-by: Joas Schilling <coding@schilljs.com>
tags/v13.0.0beta1
Joas Schilling hace 7 años
padre
commit
d0c614a322
No account linked to committer's email address
Se han modificado 1 ficheros con 6 adiciones y 0 borrados
  1. 6
    0
      apps/dav/lib/Connector/Sabre/FilesPlugin.php

+ 6
- 0
apps/dav/lib/Connector/Sabre/FilesPlugin.php Ver fichero

@@ -288,10 +288,16 @@ class FilesPlugin extends ServerPlugin {
$httpRequest = $this->server->httpRequest;

if ($node instanceof \OCA\DAV\Connector\Sabre\Node) {
/**
* This was disabled, because it made dir listing throw an exception,
* so users were unable to navigate into folders where one subitem
* is blocked by the files_accesscontrol app, see:
* https://github.com/nextcloud/files_accesscontrol/issues/65
if (!$node->getFileInfo()->isReadable()) {
// avoid detecting files through this means
throw new NotFound();
}
*/

$propFind->handle(self::FILEID_PROPERTYNAME, function() use ($node) {
return $node->getFileId();

Cargando…
Cancelar
Guardar