Commit d7b05c7a authored by Julia Radzhabova's avatar Julia Radzhabova Committed by GitHub

Merge pull request #20 from ONLYOFFICE/release/v4.1.0

Fix Bug 33031.
parents 1fbebd0d 20a70db9
......@@ -733,7 +733,9 @@ define([
},
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) {
Common.UI.warning({
title: this.titleLicenseExp,
......@@ -744,7 +746,6 @@ define([
return;
}
if ( params && !(this.appOptions.isEditDiagram || this.appOptions.isEditMailMerge)) {
this.appOptions.canAutosave = true;
this.appOptions.canAnalytics = params.asc_getIsAnalyticsEnable();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment