From 7701c371b134cda1a514e1a6d2cb5c7b971eec08 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Tue, 8 Oct 2024 16:34:19 +0200 Subject: [PATCH] fix: update parent etag when changing acl rules Signed-off-by: Robin Appelman --- lib/DAV/ACLPlugin.php | 3 +++ tests/stub.phpstub | 1 + 2 files changed, 4 insertions(+) diff --git a/lib/DAV/ACLPlugin.php b/lib/DAV/ACLPlugin.php index e29aa4bc4..1db014438 100644 --- a/lib/DAV/ACLPlugin.php +++ b/lib/DAV/ACLPlugin.php @@ -248,6 +248,9 @@ function (array $rules, array $rulesForPath) { $this->ruleManager->saveRule($rule); } + + $node->getNode()->getStorage()->getPropagator()->propagateChange($fileInfo->getInternalPath(), $fileInfo->getMtime()); + return true; }); } diff --git a/tests/stub.phpstub b/tests/stub.phpstub index 329893990..4b7c5644d 100644 --- a/tests/stub.phpstub +++ b/tests/stub.phpstub @@ -733,6 +733,7 @@ namespace OCA\DAV\Connector\Sabre { class Node { public function getFileInfo(): \OCP\Files\FileInfo {} + public function getNode(): \OC\Files\Node\Node {} } }