summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2024-09-03 09:46:36 +0200
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2024-09-05 16:00:18 +0000
commit817b8c076dba50a62cc014ce460ce112f8223e26 (patch)
tree6a6b6d66d38173c6bba3e8d0a718900b23cc651e /apps
parent9b057e472dcb9b5cc2e8c21edc7b1b823ac55dd6 (diff)
downloadnextcloud-server-817b8c076dba50a62cc014ce460ce112f8223e26.tar.gz
nextcloud-server-817b8c076dba50a62cc014ce460ce112f8223e26.zip
fix(transfer-ownership): Improve comments according to code review
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'apps')
-rw-r--r--apps/files/lib/Service/OwnershipTransferService.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/files/lib/Service/OwnershipTransferService.php b/apps/files/lib/Service/OwnershipTransferService.php
index dbc68a1031b..0b25b8f4e28 100644
--- a/apps/files/lib/Service/OwnershipTransferService.php
+++ b/apps/files/lib/Service/OwnershipTransferService.php
@@ -264,21 +264,21 @@ class OwnershipTransferService {
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();