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>
This commit is contained in:
Robin Appelman 2023-08-16 12:12:14 +02:00 committed by backportbot-nextcloud[bot]
parent 7901a7059f
commit dbc80b02b9

View file

@ -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)) {