Skip to content
Snippets Groups Projects
Commit 492fadd3 authored by Frank Karlitschek's avatar Frank Karlitschek
Browse files

Merge pull request #13952 from owncloud/fix_migration

[encryption] don't check if we have a valid user during migration
parents 4d91fa4c b2e13229
No related branches found
No related tags found
No related merge requests found
......@@ -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');
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment