diff --git a/apps/documenteditor/main/app/controller/Main.js b/apps/documenteditor/main/app/controller/Main.js index e82167648..5bc6f7aa5 100644 --- a/apps/documenteditor/main/app/controller/Main.js +++ b/apps/documenteditor/main/app/controller/Main.js @@ -359,6 +359,7 @@ define([ this.appOptions.canRequestSharingSettings = this.editorConfig.canRequestSharingSettings; this.appOptions.compatibleFeatures = (typeof (this.appOptions.customization) == 'object') && !!this.appOptions.customization.compatibleFeatures; this.appOptions.canFeatureComparison = !!this.api.asc_isSupportFeature("comparison"); + this.appOptions.canFeatureContentControl = !!this.api.asc_isSupportFeature("content-сontrols"); this.appOptions.mentionShare = !((typeof (this.appOptions.customization) == 'object') && (this.appOptions.customization.mentionShare==false)); appHeader = this.getApplication().getController('Viewport').getView('Common.Views.Header'); diff --git a/apps/documenteditor/main/app/controller/Toolbar.js b/apps/documenteditor/main/app/controller/Toolbar.js index cd83d8994..0b30cafd9 100644 --- a/apps/documenteditor/main/app/controller/Toolbar.js +++ b/apps/documenteditor/main/app/controller/Toolbar.js @@ -1761,6 +1761,8 @@ define([ }, onControlsSelect: function(menu, item) { + if (!(this.mode && this.mode.canFeatureContentControl)) return; + if (item.value == 'settings' || item.value == 'remove') { if (this.api.asc_IsContentControl()) { var props = this.api.asc_GetContentControlProperties(); diff --git a/apps/documenteditor/main/app/view/Toolbar.js b/apps/documenteditor/main/app/view/Toolbar.js index 56641180c..6e65604b8 100644 --- a/apps/documenteditor/main/app/view/Toolbar.js +++ b/apps/documenteditor/main/app/view/Toolbar.js @@ -1538,6 +1538,10 @@ define([ })); me.btnWatermark.updateHint(me.tipWatermark); + + if (!config.canFeatureContentControl && me.btnContentControls.cmpEl) { + me.btnContentControls.cmpEl.parents('.group').hide().prev('.separator').hide(); + } }); },