Skip to content

Commit

Permalink
Merge 2f29622 into d5b48ae
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtificialOwl authored Sep 13, 2024
2 parents d5b48ae + 2f29622 commit c41830e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/FilesHooks.php
Original file line number Diff line number Diff line change
Expand Up @@ -1331,6 +1331,12 @@ private function getUnrelatedUsers(int $fileId, array $cachedMounts): array {
// now that we have a list of eventuals filtered users, we confirm they have no access to the file
$filteredUsers = [];
foreach ($usersToCheck as $userId) {
if (!array_key_exists($userId, $cachedPath) || $cachedPath[$userId] === null) {
$this->logger->notice('could not find user in list of cached path', ['cachePath' => $cachedPath, 'usersToCheck' => $usersToCheck, 'current' => $userId]);
$filteredUsers[] = $userId;
continue;
}

try {
$node = $this->rootFolder->get($cachedPath[$userId]);
if ($node->isReadable()) {
Expand Down

0 comments on commit c41830e

Please sign in to comment.