]> source.dussan.org Git - nextcloud-server.git/commitdiff
Add additional check for read permissions 16502/head
authorJulius Härtl <jus@bitgrid.net>
Mon, 22 Jul 2019 15:22:05 +0000 (17:22 +0200)
committerJulius Härtl <jus@bitgrid.net>
Wed, 24 Jul 2019 12:01:24 +0000 (14:01 +0200)
Signed-off-by: Julius Härtl <jus@bitgrid.net>
lib/private/Files/Node/Folder.php

index 7f908a757a0e3cb88407c7b1040bf9f91c190ab4..19f0404877959cfd1d9953d4991c10c20e195ad6 100644 (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;
                }));
        }