From: Robin Appelman Date: Wed, 16 Aug 2023 10:12:14 +0000 (+0200) Subject: don't bother checking dav acl's in files X-Git-Tag: v27.1.0beta3~4^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=dbc80b02b9cdc4bdf8bff0cac6d5521962df754c;p=nextcloud-server.git don't bother checking dav acl's in files any permissions for files is handled in the filesystem layer anyway Signed-off-by: Robin Appelman --- diff --git a/apps/dav/lib/Connector/Sabre/DavAclPlugin.php b/apps/dav/lib/Connector/Sabre/DavAclPlugin.php index 7fa94d7b903..f574cec00c6 100644 --- a/apps/dav/lib/Connector/Sabre/DavAclPlugin.php +++ b/apps/dav/lib/Connector/Sabre/DavAclPlugin.php @@ -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)) {