Get edit rights from server config: asc_getRights. Used to set singletone mode
This commit is contained in:
parent
8dcd118e42
commit
1bcc69da7a
|
@ -956,6 +956,10 @@ define([
|
|||
}
|
||||
|
||||
this.permissions.review = (this.permissions.review === undefined) ? (this.permissions.edit !== false) : this.permissions.review;
|
||||
|
||||
if (params.asc_getRights() !== Asc.c_oRights.Edit)
|
||||
this.permissions.edit = this.permissions.review = false;
|
||||
|
||||
this.appOptions.canAnalytics = params.asc_getIsAnalyticsEnable();
|
||||
this.appOptions.canLicense = (licType === Asc.c_oLicenseResult.Success);
|
||||
this.appOptions.isLightVersion = params.asc_getIsLight();
|
||||
|
|
|
@ -732,6 +732,9 @@ define([
|
|||
return;
|
||||
}
|
||||
|
||||
if (params.asc_getRights() !== Asc.c_oRights.Edit)
|
||||
this.permissions.edit = false;
|
||||
|
||||
this.appOptions.isOffline = this.api.asc_isOffline();
|
||||
this.appOptions.canLicense = (licType === Asc.c_oLicenseResult.Success);
|
||||
this.appOptions.isLightVersion = params.asc_getIsLight();
|
||||
|
|
|
@ -752,6 +752,9 @@ define([
|
|||
return;
|
||||
}
|
||||
|
||||
if (params.asc_getRights() !== Asc.c_oRights.Edit)
|
||||
this.permissions.edit = false;
|
||||
|
||||
this.appOptions.canAutosave = true;
|
||||
this.appOptions.canAnalytics = params.asc_getIsAnalyticsEnable();
|
||||
|
||||
|
|
Loading…
Reference in a new issue