mirror of https://github.com/xwiki-labs/cryptpad
Do not send OO changes when in read only mode
https://github.com/cryptpad/cryptpad/issues/1364
This commit is contained in:
parent
fd98c2d143
commit
8d0c411a38
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue