Fix sharing of encrypted files

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
Côme Chilliet 2023-07-18 09:42:57 +02:00 committed by backportbot-nextcloud[bot]
parent 855e766cae
commit d7ef87cc95

View file

@ -441,7 +441,7 @@ class Encryption implements IEncryptionModule {
$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',