commit
bfcd228272
|
@ -1131,7 +1131,8 @@ define([
|
||||||
var license = this._state.licenseType,
|
var license = this._state.licenseType,
|
||||||
buttons = ['ok'],
|
buttons = ['ok'],
|
||||||
primary = 'ok';
|
primary = 'ok';
|
||||||
if ((this.appOptions.trialMode & Asc.c_oLicenseMode.Limited) !== 0) {
|
if ((this.appOptions.trialMode & Asc.c_oLicenseMode.Limited) !== 0 &&
|
||||||
|
(license===Asc.c_oLicenseResult.SuccessLimit || license===Asc.c_oLicenseResult.ExpiredLimited || this.appOptions.permissionsLicense===Asc.c_oLicenseResult.SuccessLimit)) {
|
||||||
(license===Asc.c_oLicenseResult.ExpiredLimited) && this.getApplication().getController('LeftMenu').leftMenu.setLimitMode();// show limited hint
|
(license===Asc.c_oLicenseResult.ExpiredLimited) && this.getApplication().getController('LeftMenu').leftMenu.setLimitMode();// show limited hint
|
||||||
license = (license===Asc.c_oLicenseResult.ExpiredLimited) ? this.warnLicenseLimitedNoAccess : this.warnLicenseLimitedRenewed;
|
license = (license===Asc.c_oLicenseResult.ExpiredLimited) ? this.warnLicenseLimitedNoAccess : this.warnLicenseLimitedRenewed;
|
||||||
} else if (license===Asc.c_oLicenseResult.Connections || license===Asc.c_oLicenseResult.UsersCount) {
|
} else if (license===Asc.c_oLicenseResult.Connections || license===Asc.c_oLicenseResult.UsersCount) {
|
||||||
|
@ -1209,6 +1210,7 @@ define([
|
||||||
if (params.asc_getRights() !== Asc.c_oRights.Edit)
|
if (params.asc_getRights() !== Asc.c_oRights.Edit)
|
||||||
this.permissions.edit = this.permissions.review = false;
|
this.permissions.edit = this.permissions.review = false;
|
||||||
|
|
||||||
|
this.appOptions.permissionsLicense = licType;
|
||||||
this.appOptions.canAnalytics = params.asc_getIsAnalyticsEnable();
|
this.appOptions.canAnalytics = params.asc_getIsAnalyticsEnable();
|
||||||
this.appOptions.canLicense = (licType === Asc.c_oLicenseResult.Success || licType === Asc.c_oLicenseResult.SuccessLimit);
|
this.appOptions.canLicense = (licType === Asc.c_oLicenseResult.Success || licType === Asc.c_oLicenseResult.SuccessLimit);
|
||||||
this.appOptions.isLightVersion = params.asc_getIsLight();
|
this.appOptions.isLightVersion = params.asc_getIsLight();
|
||||||
|
|
|
@ -687,7 +687,8 @@ define([
|
||||||
if (this._state.licenseType) {
|
if (this._state.licenseType) {
|
||||||
var license = this._state.licenseType,
|
var license = this._state.licenseType,
|
||||||
buttons = [{text: 'OK'}];
|
buttons = [{text: 'OK'}];
|
||||||
if ((this.appOptions.trialMode & Asc.c_oLicenseMode.Limited) !== 0) {
|
if ((this.appOptions.trialMode & Asc.c_oLicenseMode.Limited) !== 0 &&
|
||||||
|
(license===Asc.c_oLicenseResult.SuccessLimit || license===Asc.c_oLicenseResult.ExpiredLimited || this.appOptions.permissionsLicense===Asc.c_oLicenseResult.SuccessLimit)) {
|
||||||
license = (license===Asc.c_oLicenseResult.ExpiredLimited) ? this.warnLicenseLimitedNoAccess : this.warnLicenseLimitedRenewed;
|
license = (license===Asc.c_oLicenseResult.ExpiredLimited) ? this.warnLicenseLimitedNoAccess : this.warnLicenseLimitedRenewed;
|
||||||
} else if (license===Asc.c_oLicenseResult.Connections || license===Asc.c_oLicenseResult.UsersCount) {
|
} else if (license===Asc.c_oLicenseResult.Connections || license===Asc.c_oLicenseResult.UsersCount) {
|
||||||
license = (license===Asc.c_oLicenseResult.Connections) ? this.warnLicenseExceeded : this.warnLicenseUsersExceeded;
|
license = (license===Asc.c_oLicenseResult.Connections) ? this.warnLicenseExceeded : this.warnLicenseUsersExceeded;
|
||||||
|
@ -773,6 +774,7 @@ define([
|
||||||
|
|
||||||
if ( me.onServerVersion(params.asc_getBuildVersion()) ) return;
|
if ( me.onServerVersion(params.asc_getBuildVersion()) ) return;
|
||||||
|
|
||||||
|
me.appOptions.permissionsLicense = licType;
|
||||||
me.permissions.review = (me.permissions.review === undefined) ? (me.permissions.edit !== false) : me.permissions.review;
|
me.permissions.review = (me.permissions.review === undefined) ? (me.permissions.edit !== false) : me.permissions.review;
|
||||||
me.appOptions.canAnalytics = params.asc_getIsAnalyticsEnable();
|
me.appOptions.canAnalytics = params.asc_getIsAnalyticsEnable();
|
||||||
me.appOptions.canLicense = (licType === Asc.c_oLicenseResult.Success || licType === Asc.c_oLicenseResult.SuccessLimit);
|
me.appOptions.canLicense = (licType === Asc.c_oLicenseResult.Success || licType === Asc.c_oLicenseResult.SuccessLimit);
|
||||||
|
|
|
@ -857,7 +857,8 @@ define([
|
||||||
var license = this._state.licenseType,
|
var license = this._state.licenseType,
|
||||||
buttons = ['ok'],
|
buttons = ['ok'],
|
||||||
primary = 'ok';
|
primary = 'ok';
|
||||||
if ((this.appOptions.trialMode & Asc.c_oLicenseMode.Limited) !== 0) {
|
if ((this.appOptions.trialMode & Asc.c_oLicenseMode.Limited) !== 0 &&
|
||||||
|
(license===Asc.c_oLicenseResult.SuccessLimit || license===Asc.c_oLicenseResult.ExpiredLimited || this.appOptions.permissionsLicense===Asc.c_oLicenseResult.SuccessLimit)) {
|
||||||
(license===Asc.c_oLicenseResult.ExpiredLimited) && this.getApplication().getController('LeftMenu').leftMenu.setLimitMode();// show limited hint
|
(license===Asc.c_oLicenseResult.ExpiredLimited) && this.getApplication().getController('LeftMenu').leftMenu.setLimitMode();// show limited hint
|
||||||
license = (license===Asc.c_oLicenseResult.ExpiredLimited) ? this.warnLicenseLimitedNoAccess : this.warnLicenseLimitedRenewed;
|
license = (license===Asc.c_oLicenseResult.ExpiredLimited) ? this.warnLicenseLimitedNoAccess : this.warnLicenseLimitedRenewed;
|
||||||
} else if (license===Asc.c_oLicenseResult.Connections || license===Asc.c_oLicenseResult.UsersCount) {
|
} else if (license===Asc.c_oLicenseResult.Connections || license===Asc.c_oLicenseResult.UsersCount) {
|
||||||
|
@ -942,6 +943,7 @@ define([
|
||||||
if (params.asc_getRights() !== Asc.c_oRights.Edit)
|
if (params.asc_getRights() !== Asc.c_oRights.Edit)
|
||||||
this.permissions.edit = false;
|
this.permissions.edit = false;
|
||||||
|
|
||||||
|
this.appOptions.permissionsLicense = licType;
|
||||||
this.appOptions.isOffline = this.api.asc_isOffline();
|
this.appOptions.isOffline = this.api.asc_isOffline();
|
||||||
this.appOptions.isCrypted = this.api.asc_isCrypto();
|
this.appOptions.isCrypted = this.api.asc_isCrypto();
|
||||||
this.appOptions.canLicense = (licType === Asc.c_oLicenseResult.Success || licType === Asc.c_oLicenseResult.SuccessLimit);
|
this.appOptions.canLicense = (licType === Asc.c_oLicenseResult.Success || licType === Asc.c_oLicenseResult.SuccessLimit);
|
||||||
|
|
|
@ -617,7 +617,8 @@ define([
|
||||||
if (this._state.licenseType) {
|
if (this._state.licenseType) {
|
||||||
var license = this._state.licenseType,
|
var license = this._state.licenseType,
|
||||||
buttons = [{text: 'OK'}];
|
buttons = [{text: 'OK'}];
|
||||||
if ((this.appOptions.trialMode & Asc.c_oLicenseMode.Limited) !== 0) {
|
if ((this.appOptions.trialMode & Asc.c_oLicenseMode.Limited) !== 0 &&
|
||||||
|
(license===Asc.c_oLicenseResult.SuccessLimit || license===Asc.c_oLicenseResult.ExpiredLimited || this.appOptions.permissionsLicense===Asc.c_oLicenseResult.SuccessLimit)) {
|
||||||
license = (license===Asc.c_oLicenseResult.ExpiredLimited) ? this.warnLicenseLimitedNoAccess : this.warnLicenseLimitedRenewed;
|
license = (license===Asc.c_oLicenseResult.ExpiredLimited) ? this.warnLicenseLimitedNoAccess : this.warnLicenseLimitedRenewed;
|
||||||
} else if (license===Asc.c_oLicenseResult.Connections || license===Asc.c_oLicenseResult.UsersCount) {
|
} else if (license===Asc.c_oLicenseResult.Connections || license===Asc.c_oLicenseResult.UsersCount) {
|
||||||
license = (license===Asc.c_oLicenseResult.Connections) ? this.warnLicenseExceeded : this.warnLicenseUsersExceeded;
|
license = (license===Asc.c_oLicenseResult.Connections) ? this.warnLicenseExceeded : this.warnLicenseUsersExceeded;
|
||||||
|
@ -703,6 +704,7 @@ define([
|
||||||
|
|
||||||
if ( me.onServerVersion(params.asc_getBuildVersion()) ) return;
|
if ( me.onServerVersion(params.asc_getBuildVersion()) ) return;
|
||||||
|
|
||||||
|
me.appOptions.permissionsLicense = licType;
|
||||||
me.permissions.review = (me.permissions.review === undefined) ? (me.permissions.edit !== false) : me.permissions.review;
|
me.permissions.review = (me.permissions.review === undefined) ? (me.permissions.edit !== false) : me.permissions.review;
|
||||||
me.appOptions.canAnalytics = params.asc_getIsAnalyticsEnable();
|
me.appOptions.canAnalytics = params.asc_getIsAnalyticsEnable();
|
||||||
me.appOptions.canLicense = (licType === Asc.c_oLicenseResult.Success || licType === Asc.c_oLicenseResult.SuccessLimit);
|
me.appOptions.canLicense = (licType === Asc.c_oLicenseResult.Success || licType === Asc.c_oLicenseResult.SuccessLimit);
|
||||||
|
|
|
@ -924,7 +924,8 @@ define([
|
||||||
var license = this._state.licenseType,
|
var license = this._state.licenseType,
|
||||||
buttons = ['ok'],
|
buttons = ['ok'],
|
||||||
primary = 'ok';
|
primary = 'ok';
|
||||||
if ((this.appOptions.trialMode & Asc.c_oLicenseMode.Limited) !== 0) {
|
if ((this.appOptions.trialMode & Asc.c_oLicenseMode.Limited) !== 0 &&
|
||||||
|
(license===Asc.c_oLicenseResult.SuccessLimit || license===Asc.c_oLicenseResult.ExpiredLimited || this.appOptions.permissionsLicense===Asc.c_oLicenseResult.SuccessLimit)) {
|
||||||
(license===Asc.c_oLicenseResult.ExpiredLimited) && this.getApplication().getController('LeftMenu').leftMenu.setLimitMode();// show limited hint
|
(license===Asc.c_oLicenseResult.ExpiredLimited) && this.getApplication().getController('LeftMenu').leftMenu.setLimitMode();// show limited hint
|
||||||
license = (license===Asc.c_oLicenseResult.ExpiredLimited) ? this.warnLicenseLimitedNoAccess : this.warnLicenseLimitedRenewed;
|
license = (license===Asc.c_oLicenseResult.ExpiredLimited) ? this.warnLicenseLimitedNoAccess : this.warnLicenseLimitedRenewed;
|
||||||
} else if (license===Asc.c_oLicenseResult.Connections || license===Asc.c_oLicenseResult.UsersCount) {
|
} else if (license===Asc.c_oLicenseResult.Connections || license===Asc.c_oLicenseResult.UsersCount) {
|
||||||
|
@ -1009,6 +1010,7 @@ define([
|
||||||
if (params.asc_getRights() !== Asc.c_oRights.Edit)
|
if (params.asc_getRights() !== Asc.c_oRights.Edit)
|
||||||
this.permissions.edit = false;
|
this.permissions.edit = false;
|
||||||
|
|
||||||
|
this.appOptions.permissionsLicense = licType;
|
||||||
this.appOptions.canAutosave = true;
|
this.appOptions.canAutosave = true;
|
||||||
this.appOptions.canAnalytics = params.asc_getIsAnalyticsEnable();
|
this.appOptions.canAnalytics = params.asc_getIsAnalyticsEnable();
|
||||||
|
|
||||||
|
|
|
@ -642,7 +642,8 @@ define([
|
||||||
if (this._state.licenseType) {
|
if (this._state.licenseType) {
|
||||||
var license = this._state.licenseType,
|
var license = this._state.licenseType,
|
||||||
buttons = [{text: 'OK'}];
|
buttons = [{text: 'OK'}];
|
||||||
if ((this.appOptions.trialMode & Asc.c_oLicenseMode.Limited) !== 0) {
|
if ((this.appOptions.trialMode & Asc.c_oLicenseMode.Limited) !== 0 &&
|
||||||
|
(license===Asc.c_oLicenseResult.SuccessLimit || license===Asc.c_oLicenseResult.ExpiredLimited || this.appOptions.permissionsLicense===Asc.c_oLicenseResult.SuccessLimit)) {
|
||||||
license = (license===Asc.c_oLicenseResult.ExpiredLimited) ? this.warnLicenseLimitedNoAccess : this.warnLicenseLimitedRenewed;
|
license = (license===Asc.c_oLicenseResult.ExpiredLimited) ? this.warnLicenseLimitedNoAccess : this.warnLicenseLimitedRenewed;
|
||||||
} else if (license===Asc.c_oLicenseResult.Connections || license===Asc.c_oLicenseResult.UsersCount) {
|
} else if (license===Asc.c_oLicenseResult.Connections || license===Asc.c_oLicenseResult.UsersCount) {
|
||||||
license = (license===Asc.c_oLicenseResult.Connections) ? this.warnLicenseExceeded : this.warnLicenseUsersExceeded;
|
license = (license===Asc.c_oLicenseResult.Connections) ? this.warnLicenseExceeded : this.warnLicenseUsersExceeded;
|
||||||
|
@ -733,6 +734,7 @@ define([
|
||||||
me.permissions.edit = false;
|
me.permissions.edit = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
me.appOptions.permissionsLicense = licType;
|
||||||
me.appOptions.canAutosave = true;
|
me.appOptions.canAutosave = true;
|
||||||
me.appOptions.canAnalytics = params.asc_getIsAnalyticsEnable();
|
me.appOptions.canAnalytics = params.asc_getIsAnalyticsEnable();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue