From 1a9dcc57257911237cac2141ce8484acc128c2ab Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Wed, 16 Aug 2023 12:12:14 +0200 Subject: [PATCH] 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 --- apps/dav/lib/Connector/Sabre/DavAclPlugin.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/apps/dav/lib/Connector/Sabre/DavAclPlugin.php b/apps/dav/lib/Connector/Sabre/DavAclPlugin.php index 7fa94d7b90398..f574cec00c6b6 100644 --- a/apps/dav/lib/Connector/Sabre/DavAclPlugin.php +++ b/apps/dav/lib/Connector/Sabre/DavAclPlugin.php @@ -75,6 +75,11 @@ public function checkPrivileges($uri, $privileges, $recursion = self::R_PARENT, } 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)) {