diff options
author | Robin Appelman <robin@icewind.nl> | 2023-08-16 12:12:14 +0200 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2023-08-16 12:13:04 +0200 |
commit | 1a9dcc57257911237cac2141ce8484acc128c2ab (patch) | |
tree | 20d43075ac4d4fc1290449b6b0439d2bf82f83d6 /apps/dav | |
parent | 6d0dabedd83bce94f43dc0375b110e80af8514f8 (diff) | |
download | nextcloud-server-1a9dcc57257911237cac2141ce8484acc128c2ab.tar.gz nextcloud-server-1a9dcc57257911237cac2141ce8484acc128c2ab.zip |
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 <robin@icewind.nl>
Diffstat (limited to 'apps/dav')
-rw-r--r-- | apps/dav/lib/Connector/Sabre/DavAclPlugin.php | 5 |
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)) { |