From 40520f323c26466a6de8fe4fbb679810cf49c239 Mon Sep 17 00:00:00 2001 From: JuliaSvinareva Date: Tue, 20 Dec 2022 19:43:08 +0300 Subject: [PATCH] [DE] Fix bug 60184 --- apps/documenteditor/main/app/controller/LeftMenu.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/documenteditor/main/app/controller/LeftMenu.js b/apps/documenteditor/main/app/controller/LeftMenu.js index f454f1769..108f88eb0 100644 --- a/apps/documenteditor/main/app/controller/LeftMenu.js +++ b/apps/documenteditor/main/app/controller/LeftMenu.js @@ -602,7 +602,7 @@ define([ }, updatePreviewMode: function() { - var viewmode = this._state.disableEditing || this._state.docProtection.isReadOnly || this._state.docProtection.isFormsOnly; + var viewmode = this._state.disableEditing || this._state.docProtection.isReadOnly || this._state.docProtection.isFormsOnly || this._state.docProtection.isCommentsOnly; if (this.viewmode === viewmode) return; this.viewmode = viewmode;