diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2015-04-01 13:59:29 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2015-04-07 13:30:30 +0200 |
commit | cac83642f2df98497ecedcded1716c28fa676313 (patch) | |
tree | 4ac7401d90eea42ec970919d59f19f9c81ef9d60 /lib/private/encryption | |
parent | d203296e3514e5d987942f71fc80421a55ec477a (diff) | |
download | nextcloud-server-cac83642f2df98497ecedcded1716c28fa676313.tar.gz nextcloud-server-cac83642f2df98497ecedcded1716c28fa676313.zip |
Finally fixing encryption with public share
Diffstat (limited to 'lib/private/encryption')
-rw-r--r-- | lib/private/encryption/update.php | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/lib/private/encryption/update.php b/lib/private/encryption/update.php index 21cedde6140..e838e870502 100644 --- a/lib/private/encryption/update.php +++ b/lib/private/encryption/update.php @@ -93,25 +93,25 @@ class Update { * @param int $fileSource file source id */ private function update($fileSource) { - $path = \OC\Files\Filesystem::getPath($fileSource); - $absPath = '/' . $this->uid . '/files' . $path; + $path = \OC\Files\Filesystem::getPath($fileSource); + $absPath = '/' . $this->uid . '/files' . $path; - $mount = $this->mountManager->find($path); - $mountPoint = $mount->getMountPoint(); + $mount = $this->mountManager->find($path); + $mountPoint = $mount->getMountPoint(); - // if a folder was shared, get a list of all (sub-)folders - if ($this->view->is_dir($absPath)) { - $allFiles = $this->util->getAllFiles($absPath, $mountPoint); - } else { - $allFiles = array($absPath); - } + // if a folder was shared, get a list of all (sub-)folders + if ($this->view->is_dir($absPath)) { + $allFiles = $this->util->getAllFiles($absPath, $mountPoint); + } else { + $allFiles = array($absPath); + } - $encryptionModule = $this->encryptionManager->getDefaultEncryptionModule(); + $encryptionModule = $this->encryptionManager->getDefaultEncryptionModule(); - foreach ($allFiles as $path) { - $usersSharing = $this->file->getAccessList($path); - $encryptionModule->update($absPath, $this->uid, $usersSharing); - } + foreach ($allFiles as $path) { + $usersSharing = $this->file->getAccessList($path); + $encryptionModule->update($absPath, $this->uid, $usersSharing); + } } -}
\ No newline at end of file +} |