From 632d7ab933436e4ea5eca88cdd516fa1a167a416 Mon Sep 17 00:00:00 2001 From: Marcel Klehr Date: Wed, 29 May 2024 09:22:55 +0200 Subject: [PATCH] fix(FileListener): Clear MountCache before checking access Signed-off-by: Marcel Klehr --- lib/Hooks/FileListener.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/Hooks/FileListener.php b/lib/Hooks/FileListener.php index 3d8af0b2..43d7d91e 100644 --- a/lib/Hooks/FileListener.php +++ b/lib/Hooks/FileListener.php @@ -74,6 +74,7 @@ private function getUsersWithFileAccess(Node $node): array { $accessList = $this->shareManager->getAccessList($node, true, true); $userIds = array_map(fn ($id) => strval($id), array_keys($accessList['users'])); + $this->userMountCache->clear(); $mountInfos = $this->userMountCache->getMountsForFileId($node->getId()); $userIds += array_map(static function (ICachedMountInfo $mountInfo) { return $mountInfo->getUser()->getUID();