Fix Bug 33031.
This commit is contained in:
		
							parent
							
								
									b0c7c000f7
								
							
						
					
					
						commit
						20a70db963
					
				| 
						 | 
					@ -733,18 +733,19 @@ define([
 | 
				
			||||||
            },
 | 
					            },
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            onEditorPermissions: function(params) {
 | 
					            onEditorPermissions: function(params) {
 | 
				
			||||||
                var licType = params.asc_getLicenseType();
 | 
					                var licType = params ? params.asc_getLicenseType() : Asc.c_oLicenseResult.Error;
 | 
				
			||||||
                if (Asc.c_oLicenseResult.Expired === licType || Asc.c_oLicenseResult.Error === licType) {
 | 
					
 | 
				
			||||||
                    Common.UI.warning({
 | 
					                if ( params && !(this.appOptions.isEditDiagram || this.appOptions.isEditMailMerge)) {
 | 
				
			||||||
                        title: this.titleLicenseExp,
 | 
					                    if (Asc.c_oLicenseResult.Expired === licType || Asc.c_oLicenseResult.Error === licType) {
 | 
				
			||||||
                        msg: this.warnLicenseExp,
 | 
					                        Common.UI.warning({
 | 
				
			||||||
                        buttons: [],
 | 
					                            title: this.titleLicenseExp,
 | 
				
			||||||
                        closable: false
 | 
					                            msg: this.warnLicenseExp,
 | 
				
			||||||
                    });
 | 
					                            buttons: [],
 | 
				
			||||||
                    return;
 | 
					                            closable: false
 | 
				
			||||||
                }
 | 
					                        });
 | 
				
			||||||
 | 
					                        return;
 | 
				
			||||||
 | 
					                    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                if ( params  && !(this.appOptions.isEditDiagram || this.appOptions.isEditMailMerge)) {
 | 
					 | 
				
			||||||
                    this.appOptions.canAutosave = true;
 | 
					                    this.appOptions.canAutosave = true;
 | 
				
			||||||
                    this.appOptions.canAnalytics = params.asc_getIsAnalyticsEnable();
 | 
					                    this.appOptions.canAnalytics = params.asc_getIsAnalyticsEnable();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue