summaryrefslogtreecommitdiffstats
path: root/apps/dav
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@users.noreply.github.com>2023-08-24 10:06:05 +0200
committerGitHub <noreply@github.com>2023-08-24 10:06:05 +0200
commit927374fef8f45106b3fbc3a8ac1e6f617d0e8084 (patch)
tree9f789d2f4647d32484360bb7bff76d702a22cca2 /apps/dav
parentd27830984c719fbc8f4f9edbe221d2f87458ac20 (diff)
parentdbc80b02b9cdc4bdf8bff0cac6d5521962df754c (diff)
downloadnextcloud-server-927374fef8f45106b3fbc3a8ac1e6f617d0e8084.tar.gz
nextcloud-server-927374fef8f45106b3fbc3a8ac1e6f617d0e8084.zip
Merge pull request #39953 from nextcloud/backport/39903/stable27
Diffstat (limited to 'apps/dav')
-rw-r--r--apps/dav/lib/Connector/Sabre/DavAclPlugin.php5
1 files changed, 5 insertions, 0 deletions
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)) {