From 817b8c076dba50a62cc014ce460ce112f8223e26 Mon Sep 17 00:00:00 2001 From: Côme Chilliet Date: Tue, 3 Sep 2024 09:46:36 +0200 Subject: fix(transfer-ownership): Improve comments according to code review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Côme Chilliet --- apps/files/lib/Service/OwnershipTransferService.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'apps') 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(); -- cgit v1.2.3