Merge pull request #2151 from ONLYOFFICE/fix/fix-bugs

[DE] Fix bug 60184
This commit is contained in:
Julia Radzhabova 2022-12-21 12:19:17 +03:00 committed by GitHub
commit 2a31d73ecf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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;