Add additional check for read permissions
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
parent
3674f6fa2d
commit
e43b341b04
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
}));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue