]> source.dussan.org Git - nextcloud-server.git/commitdiff
don't bother checking dav acl's in files 39953/head
authorRobin Appelman <robin@icewind.nl>
Wed, 16 Aug 2023 10:12:14 +0000 (12:12 +0200)
committerbackportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com>
Fri, 18 Aug 2023 08:08:34 +0000 (08:08 +0000)
any permissions for files is handled in the filesystem layer anyway

Signed-off-by: Robin Appelman <robin@icewind.nl>
apps/dav/lib/Connector/Sabre/DavAclPlugin.php

index 7fa94d7b90398c0804f5522e2a67b07def7c12a5..f574cec00c6b61e9dda77eb558925d4fa8397574 100644 (file)
@@ -75,6 +75,11 @@ class DavAclPlugin extends \Sabre\DAVACL\Plugin {
        }
 
        public function propFind(PropFind $propFind, INode $node) {
+               if ($node instanceof Node) {
+                       // files don't use dav acls
+                       return;
+               }
+
                // If the node is neither readable nor writable then fail unless its of
                // the standard user-principal
                if (!($node instanceof User)) {