diff options
author | Vincent Petry <pvince81@owncloud.com> | 2016-06-08 10:12:28 +0200 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2016-06-08 10:12:28 +0200 |
commit | b7935dcebd97a0a3f08909548a38e8596f8eb4d9 (patch) | |
tree | 0ae11157775945dd57e29dcdff970961729a9da7 /lib | |
parent | 111b4d705108bfa215a4bc9440b2175fd2f8a40f (diff) | |
parent | d4ba982131de93b0217c9376307489fe4ca033b0 (diff) | |
download | nextcloud-server-b7935dcebd97a0a3f08909548a38e8596f8eb4d9.tar.gz nextcloud-server-b7935dcebd97a0a3f08909548a38e8596f8eb4d9.zip |
Merge pull request #24998 from owncloud/issue-24994-allow-decrypting-user-0-only
Allow to decrypt user '0' files only
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Encryption/DecryptAll.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/Encryption/DecryptAll.php b/lib/private/Encryption/DecryptAll.php index 8676bc09575..34a3e1bff91 100644 --- a/lib/private/Encryption/DecryptAll.php +++ b/lib/private/Encryption/DecryptAll.php @@ -80,7 +80,7 @@ class DecryptAll { $this->input = $input; $this->output = $output; - if (!empty($user) && $this->userManager->userExists($user) === false) { + if ($user !== '' && $this->userManager->userExists($user) === false) { $this->output->writeln('User "' . $user . '" does not exist. Please check the username and try again'); return false; } @@ -141,7 +141,7 @@ class DecryptAll { $this->output->writeln("\n"); $userList = []; - if (empty($user)) { + if ($user === '') { $fetchUsersProgress = new ProgressBar($this->output); $fetchUsersProgress->setFormat(" %message% \n [%bar%]"); |