diff --git a/server/routes/api/documents.js b/server/routes/api/documents.js index 70eabae5..a10dc7ee 100644 --- a/server/routes/api/documents.js +++ b/server/routes/api/documents.js @@ -1038,11 +1038,14 @@ router.post("documents.update", auth(), async (ctx) => { if (editorVersion) document.editorVersion = editorVersion; if (templateId) document.templateId = templateId; - if (append) { - document.text += text; - } else if (text !== undefined) { - document.text = text; + if (!user.team?.collaborativeEditing) { + if (append) { + document.text += text; + } else if (text !== undefined) { + document.text = text; + } } + document.lastModifiedById = user.id; const { collection } = document;