You've already forked onlyoffice-owncloud
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:
@ -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]);
|
||||
|
Reference in New Issue
Block a user