From cb1540ea7e558b0de290d2bc5228acedba8709c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn=20Friedrich=20Dreyer?= Date: Tue, 14 Mar 2017 17:14:03 +0100 Subject: [PATCH] Take from nextcloud/server@351cab6 - THX @schiessle --- lib/private/encryption/decryptall.php | 4 ++++ 1 file changed, 4 insertions(+) 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;