Add additional check for read permissions

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl 2019-07-22 17:22:05 +02:00 committed by Backportbot
parent f1f755740d
commit e7920203ba
1 changed files with 2 additions and 1 deletions

View File

@ -447,7 +447,8 @@ class Folder extends Node implements \OCP\Files\Folder {
return false;
}
$relative = $this->getRelativePath($node->getPath());
return $relative !== null && $relative !== '/';
return $relative !== null && $relative !== '/'
&& ($cacheEntry->getPermissions() & \OCP\Constants::PERMISSION_READ) === \OCP\Constants::PERMISSION_READ;
}));
}