Add additional check for read permissions
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
parent
f1f755740d
commit
e7920203ba
|
@ -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 New Issue