aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/encryption/update.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/encryption/update.php')
-rw-r--r--lib/private/encryption/update.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/private/encryption/update.php b/lib/private/encryption/update.php
index e838e870502..1cfe935e584 100644
--- a/lib/private/encryption/update.php
+++ b/lib/private/encryption/update.php
@@ -94,7 +94,11 @@ class Update {
*/
private function update($fileSource) {
$path = \OC\Files\Filesystem::getPath($fileSource);
- $absPath = '/' . $this->uid . '/files' . $path;
+ $info = \OC\Files\Filesystem::getFileInfo($path);
+ $owner = \OC\Files\Filesystem::getOwner($path);
+ $view = new \OC\Files\View('/' . $owner . '/files');
+ $ownerPath = $view->getPath($info->getId());
+ $absPath = '/' . $owner . '/files' . $ownerPath;
$mount = $this->mountManager->find($path);
$mountPoint = $mount->getMountPoint();
@@ -110,7 +114,7 @@ class Update {
foreach ($allFiles as $path) {
$usersSharing = $this->file->getAccessList($path);
- $encryptionModule->update($absPath, $this->uid, $usersSharing);
+ $encryptionModule->update($path, $this->uid, $usersSharing);
}
}