Do not send OO changes when in read only mode

https://github.com/cryptpad/cryptpad/issues/1364
This commit is contained in:
Wolfgang Ginolas 2024-07-08 11:51:43 +02:00 committed by wginolas
parent fd98c2d143
commit 8d0c411a38
1 changed files with 4 additions and 0 deletions

View File

@ -1478,6 +1478,10 @@ define([
send({ type: "message" });
break;
case "saveChanges":
if (readOnly) {
return;
}
// If we have unsaved data before reloading for a checkpoint...
if (APP.onStrictSaveChanges) {
delete APP.unsavedLocks;