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" });
|
send({ type: "message" });
|
||||||
break;
|
break;
|
||||||
case "saveChanges":
|
case "saveChanges":
|
||||||
|
if (readOnly) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// If we have unsaved data before reloading for a checkpoint...
|
// If we have unsaved data before reloading for a checkpoint...
|
||||||
if (APP.onStrictSaveChanges) {
|
if (APP.onStrictSaveChanges) {
|
||||||
delete APP.unsavedLocks;
|
delete APP.unsavedLocks;
|
||||||
|
|
Loading…
Reference in New Issue