diff --git a/apps/documenteditor/main/app/view/DocumentHolder.js b/apps/documenteditor/main/app/view/DocumentHolder.js index 7a0c981779..dacf23c199 100644 --- a/apps/documenteditor/main/app/view/DocumentHolder.js +++ b/apps/documenteditor/main/app/view/DocumentHolder.js @@ -2931,7 +2931,7 @@ define([ SetDisabled: function(state, canProtect, fillFormMode) { this._isDisabled = state; - this._canProtect = canProtect; + this._canProtect = state ? canProtect : true; this._fillFormMode = state ? fillFormMode : false; }, diff --git a/apps/spreadsheeteditor/main/app/controller/DocumentHolder.js b/apps/spreadsheeteditor/main/app/controller/DocumentHolder.js index e5147d1653..9103767a86 100644 --- a/apps/spreadsheeteditor/main/app/controller/DocumentHolder.js +++ b/apps/spreadsheeteditor/main/app/controller/DocumentHolder.js @@ -4433,7 +4433,7 @@ define([ SetDisabled: function(state, canProtect) { this._isDisabled = state; - this._canProtect = canProtect; + this._canProtect = state ? canProtect : true; this.disableEquationBar(); },