Skip to content

Commit

Permalink
fix: update parent etag when changing acl rules
Browse files Browse the repository at this point in the history
Signed-off-by: Robin Appelman <robin@icewind.nl>
  • Loading branch information
icewind1991 committed Oct 11, 2024
1 parent 17db1fe commit ebb7b3e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/DAV/ACLPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,9 @@ function (array $rules, array $rulesForPath) {
$this->ruleManager->saveRule($rule);
}


$node->getNode()->getStorage()->getPropagator()->propagateChange($fileInfo->getInternalPath(), $fileInfo->getMtime());

return true;
});
}
Expand Down
1 change: 1 addition & 0 deletions tests/stub.phpstub
Original file line number Diff line number Diff line change
Expand Up @@ -684,6 +684,7 @@ namespace OCA\DAV\Connector\Sabre {

class Node {
public function getFileInfo(): \OCP\Files\FileInfo {}
public function getNode(): \OC\Files\Node\Node {}
}
}

Expand Down

0 comments on commit ebb7b3e

Please sign in to comment.