Skip to content

Commit 29d70c6

Browse files
committed
Add additional check for read permissions
Signed-off-by: Julius Härtl <jus@bitgrid.net>
1 parent 53a9ef8 commit 29d70c6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/private/Files/Node/Folder.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,8 @@ private function recentParse($result, $mountMap, $mimetypeLoader) {
447447
return false;
448448
}
449449
$relative = $this->getRelativePath($node->getPath());
450-
return $relative !== null && $relative !== '/';
450+
return $relative !== null && $relative !== '/'
451+
&& ($cacheEntry->getPermissions() & \OCP\Constants::PERMISSION_READ) === \OCP\Constants::PERMISSION_READ;
451452
}));
452453
}
453454

0 commit comments

Comments
 (0)