[DE] Fix bug 60184

This commit is contained in:
JuliaSvinareva 2022-12-20 19:43:08 +03:00
parent b823c308db
commit 40520f323c

View file

@ -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;