mirror of
https://github.com/nextcloud/server.git
synced 2026-04-21 14:23:17 -04:00
Only set is encrypted when encryption is enabled
This commit is contained in:
parent
9ccf94ca06
commit
9cee8ff9f8
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue