1
0
mirror of https://github.com/ONLYOFFICE/onlyoffice-owncloud.git synced 2025-07-30 10:43:07 +03:00

delete key after saving when encryption master mode

This commit is contained in:
Antipkin-A
2022-08-26 11:18:31 +03:00
parent bd15a18403
commit b4be08e522

View File

@ -573,6 +573,11 @@ class CallbackController extends Controller {
FileVersions::saveAuthor($file->getFileInfo(), $user);
}
if ($this->config->checkEncryptionModule() === "master"
&& !$isForcesave) {
KeyManager::delete($fileId);
}
$result = 0;
} catch (\Exception $e) {
$this->logger->logException($e, ["message" => "Track: $fileId status $status error", "app" => $this->appName]);