You've already forked onlyoffice-owncloud
mirror of
https://github.com/ONLYOFFICE/onlyoffice-owncloud.git
synced 2025-07-31 21:44:24 +03:00
delete key after saving when encryption master mode
This commit is contained in:
@ -573,6 +573,11 @@ class CallbackController extends Controller {
|
|||||||
FileVersions::saveAuthor($file->getFileInfo(), $user);
|
FileVersions::saveAuthor($file->getFileInfo(), $user);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($this->config->checkEncryptionModule() === "master"
|
||||||
|
&& !$isForcesave) {
|
||||||
|
KeyManager::delete($fileId);
|
||||||
|
}
|
||||||
|
|
||||||
$result = 0;
|
$result = 0;
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
$this->logger->logException($e, ["message" => "Track: $fileId status $status error", "app" => $this->appName]);
|
$this->logger->logException($e, ["message" => "Track: $fileId status $status error", "app" => $this->appName]);
|
||||||
|
Reference in New Issue
Block a user