diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2016-07-28 16:48:46 +0300 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2016-08-17 11:53:49 +0300 |
commit | 7857517037d47ba90b55f2e5297c0c70de9462a3 (patch) | |
tree | 7e53c7a10f58a3dc42987aa17e1c459bbb658809 /lib | |
parent | 40fc3d17ffb267b073628d2a40f63d3c03f304d6 (diff) |
Take from https://github.com/nextcloud/server/pull/608/commits/351cab6bce41b53f9efd4ba9aed4e7435f843691 - THX @schiessle
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/encryption/decryptall.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/private/encryption/decryptall.php b/lib/private/encryption/decryptall.php index 34a3e1bff91..376cdd3d5aa 100644 --- a/lib/private/encryption/decryptall.php +++ b/lib/private/encryption/decryptall.php @@ -206,6 +206,10 @@ class DecryptAll { 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; |