diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2024-09-03 09:46:36 +0200 |
---|---|---|
committer | Côme Chilliet <91878298+come-nc@users.noreply.github.com> | 2024-09-05 14:44:50 +0200 |
commit | 0555900134b582825cf5824d395f2a741c0844e7 (patch) | |
tree | 12d27f30da944c0d5949039aaac808d1e94e07b8 | |
parent | d92bf388b1c553ecd6bfb2a7400b990dcafe9c54 (diff) | |
download | nextcloud-server-0555900134b582825cf5824d395f2a741c0844e7.tar.gz nextcloud-server-0555900134b582825cf5824d395f2a741c0844e7.zip |
fix(transfer-ownership): Improve comments according to code review
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
-rw-r--r-- | apps/files/lib/Service/OwnershipTransferService.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/files/lib/Service/OwnershipTransferService.php b/apps/files/lib/Service/OwnershipTransferService.php index 4b984d08014..14cbe882245 100644 --- a/apps/files/lib/Service/OwnershipTransferService.php +++ b/apps/files/lib/Service/OwnershipTransferService.php @@ -245,21 +245,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(); |