mirror of
https://github.com/nextcloud/server.git
synced 2026-06-05 06:44:47 -04:00
fix(transfer-ownership): Improve comments according to code review
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
parent
9b057e472d
commit
817b8c076d
1 changed files with 3 additions and 3 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in a new issue