From dbc80b02b9cdc4bdf8bff0cac6d5521962df754c Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Wed, 16 Aug 2023 12:12:14 +0200 Subject: 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(+) (limited to 'apps/dav') 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)) { -- cgit v1.2.3