Skip to content

Commit

Permalink
Merge pull request #39454 from nextcloud/backport/39447/stable27
Browse files Browse the repository at this point in the history
[stable27] Fix sharing of encrypted files
  • Loading branch information
AndyScherzinger committed Jul 18, 2023
2 parents 855e766 + d7ef87c commit 281117a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/encryption/lib/Crypto/Encryption.php
Expand Up @@ -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',
Expand Down

0 comments on commit 281117a

Please sign in to comment.