Skip to content

Commit

Permalink
fix(transfer-ownership): Improve comments according to code review
Browse files Browse the repository at this point in the history
Signed-off-by: Côme Chilliet <[email protected]>
  • Loading branch information
come-nc committed Sep 5, 2024
1 parent d92bf38 commit 0555900
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/files/lib/Service/OwnershipTransferService.php
Original file line number Diff line number Diff line change
Expand Up @@ -245,21 +245,21 @@ function (FileInfo $fileInfo) use ($progress, $masterKeyEnabled, &$encryptedFile
return false;
}
if ($fileInfo->isEncrypted()) {
/* Encrypted folder means e2ee encrypted */
/* Encrypted folder means e2ee encrypted, we cannot transfer it */
$encryptedFiles[] = $fileInfo;
}
return true;
}
$progress->advance();
if ($fileInfo->isEncrypted() && !$masterKeyEnabled) {
/* Encrypted file means SSE, we only care if we are using user keys */
/* Encrypted file means SSE, we can only transfer it if master key is enabled */
$encryptedFiles[] = $fileInfo;
}
return true;
});
}
} elseif ($sourceFileInfo->isEncrypted() && !$masterKeyEnabled) {
/* Encrypted file means SSE, we only care if we are using user keys */
/* Encrypted file means SSE, we can only transfer it if master key is enabled */
$encryptedFiles[] = $sourceFileInfo;
}
$progress->finish();
Expand Down

0 comments on commit 0555900

Please sign in to comment.