Skip to content

Commit

Permalink
fix(FileListener): Clear MountCache before checking access
Browse files Browse the repository at this point in the history
Signed-off-by: Marcel Klehr <[email protected]>
  • Loading branch information
marcelklehr committed May 29, 2024
1 parent ba77907 commit 632d7ab
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/Hooks/FileListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 632d7ab

Please sign in to comment.