From a2f90bd4df3c1b69d88730f28f66b0e07c86bad4 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 0ff64151f..923060f2e 100644 --- a/lib/DAV/ACLPlugin.php +++ b/lib/DAV/ACLPlugin.php @@ -233,6 +233,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 7f68ac3eb..75d09a397 100644 --- a/tests/stub.phpstub +++ b/tests/stub.phpstub @@ -812,6 +812,7 @@ namespace OCA\DAV\Connector\Sabre { class Node { public function getFileInfo(): \OCP\Files\FileInfo {} + public function getNode(): \OC\Files\Node\Node {} } }