From f062b62f0396b50436070426ad9d10b853543c3f Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Fri, 24 Jun 2016 16:46:25 +0200 Subject: Keep encryption enabled if decrypting for single user When decrypting all files of a single user, the admin usually does not intend encryption to be suddenly disabled for everyone. This fix reenables encryption after decrypting for a single user. Decrypting for all users will still disable encryption globally. --- core/Command/Encryption/DecryptAll.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'core/Command/Encryption/DecryptAll.php') diff --git a/core/Command/Encryption/DecryptAll.php b/core/Command/Encryption/DecryptAll.php index 83c6c1dc168..cda7853b8b4 100644 --- a/core/Command/Encryption/DecryptAll.php +++ b/core/Command/Encryption/DecryptAll.php @@ -150,6 +150,9 @@ class DecryptAll extends Command { $output->writeln(' aborted.'); $output->writeln('Server side encryption remains enabled'); $this->config->setAppValue('core', 'encryption_enabled', 'yes'); + } else if ($uid !== '') { + $output->writeln('Server side encryption remains enabled'); + $this->config->setAppValue('core', 'encryption_enabled', 'yes'); } $this->resetSingleUserAndTrashbin(); } else { -- cgit v1.2.3