diff --git a/apps/encryption/lib/Crypto/Encryption.php b/apps/encryption/lib/Crypto/Encryption.php index 0bcaa167907f1..899d0f4315d26 100644 --- a/apps/encryption/lib/Crypto/Encryption.php +++ b/apps/encryption/lib/Crypto/Encryption.php @@ -441,7 +441,7 @@ public function update($path, $uid, array $accessList) { $this->keyManager->deleteAllFileKeys($path); foreach ($shareKeys as $uid => $keyFile) { - $this->keyManager->setShareKey($this->path, $uid, $keyFile); + $this->keyManager->setShareKey($path, $uid, $keyFile); } } else { $this->logger->debug('no file key found, we assume that the file "{file}" is not encrypted',