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();