diff --git a/lib/private/encryption/decryptall.php b/lib/private/encryption/decryptall.php index e19ee6b745f3..69b9393ef784 100644 --- a/lib/private/encryption/decryptall.php +++ b/lib/private/encryption/decryptall.php @@ -205,6 +205,10 @@ protected function decryptUsersFiles($uid, ProgressBar $progress, $userCount) { while($root = array_pop($directories)) { $content = $this->rootView->getDirectoryContent($root); foreach ($content as $file) { + // only decrypt files owned by the user + if($file->getStorage()->instanceOfStorage('OC\Files\Storage\Shared')) { + continue; + } $path = $root . '/' . $file['name']; if ($this->rootView->is_dir($path)) { $directories[] = $path;