commit
d7b05c7ada
|
@ -733,7 +733,9 @@ define([
|
||||||
},
|
},
|
||||||
|
|
||||||
onEditorPermissions: function(params) {
|
onEditorPermissions: function(params) {
|
||||||
var licType = params.asc_getLicenseType();
|
var licType = params ? params.asc_getLicenseType() : Asc.c_oLicenseResult.Error;
|
||||||
|
|
||||||
|
if ( params && !(this.appOptions.isEditDiagram || this.appOptions.isEditMailMerge)) {
|
||||||
if (Asc.c_oLicenseResult.Expired === licType || Asc.c_oLicenseResult.Error === licType) {
|
if (Asc.c_oLicenseResult.Expired === licType || Asc.c_oLicenseResult.Error === licType) {
|
||||||
Common.UI.warning({
|
Common.UI.warning({
|
||||||
title: this.titleLicenseExp,
|
title: this.titleLicenseExp,
|
||||||
|
@ -744,7 +746,6 @@ define([
|
||||||
return;
|
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