mirror of
https://github.com/nextcloud/server.git
synced 2025-10-26 19:21:34 +00:00
Only set is encrypted when encryption is enabled
This commit is contained in:
parent
9ccf94ca06
commit
9cee8ff9f8
@ -521,7 +521,7 @@ class Encryption extends Wrapper {
|
||||
if ($preserveMtime) {
|
||||
$this->touch($targetInternalPath, $sourceStorage->filemtime($sourceInternalPath));
|
||||
}
|
||||
$isEncrypted = $this->mount->getOption('encrypt', true) ? 1 : 0;
|
||||
$isEncrypted = $this->encryptionManager->isEnabled() && $this->mount->getOption('encrypt', true) ? 1 : 0;
|
||||
|
||||
// in case of a rename we need to manipulate the source cache because
|
||||
// this information will be kept for the new target
|
||||
|
||||
Loading…
Reference in New Issue
Block a user