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
parent 6d0dabedd8
commit 1a9dcc5725

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