]> source.dussan.org Git - nextcloud-server.git/commitdiff
don't check if we have a valid user
authorBjoern Schiessle <schiessle@owncloud.com>
Fri, 6 Feb 2015 16:01:23 +0000 (17:01 +0100)
committerBjoern Schiessle <schiessle@owncloud.com>
Fri, 6 Feb 2015 16:31:15 +0000 (17:31 +0100)
apps/files_encryption/lib/migration.php

index cf5552f84ac2241ba6714d75454a64ca0184e8fc..8af633aeaffed1cde44c7250088fe7aab86d81f9 100644 (file)
@@ -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');
                                                }
                                        }