summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2015-02-06 17:01:23 +0100
committerBjoern Schiessle <schiessle@owncloud.com>2015-02-06 17:31:15 +0100
commitb2e13229fa6d31116168caee053694bf515a4ba6 (patch)
tree032bae0f54281395ecb08fcbffa15ad9cf7bb6f5 /apps
parent80e38b84dccde44c40109e9721fac00984f43ef7 (diff)
downloadnextcloud-server-b2e13229fa6d31116168caee053694bf515a4ba6.tar.gz
nextcloud-server-b2e13229fa6d31116168caee053694bf515a4ba6.zip
don't check if we have a valid user
Diffstat (limited to 'apps')
-rw-r--r--apps/files_encryption/lib/migration.php6
1 files changed, 1 insertions, 5 deletions
diff --git a/apps/files_encryption/lib/migration.php b/apps/files_encryption/lib/migration.php
index cf5552f84ac..8af633aeaff 100644
--- a/apps/files_encryption/lib/migration.php
+++ b/apps/files_encryption/lib/migration.php
@@ -256,11 +256,7 @@ class Migration {
if (substr($file, 0, strlen($filename) +1) === $filename . '.') {
$uid = $this->getUidFromShareKey($file, $filename, $trash);
- if ($uid === $this->public_share_key_id ||
- $uid === $this->recovery_key_id ||
- \OCP\User::userExists($uid)) {
- $this->view->copy($oldShareKeyPath . '/' . $file, $target . '/' . $uid . '.shareKey');
- }
+ $this->view->copy($oldShareKeyPath . '/' . $file, $target . '/' . $uid . '.shareKey');
}
}