mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-07-25 15:33:23 +08:00
[DE PE mobile] Correct app options
This commit is contained in:
@ -86,6 +86,8 @@ export class storeAppOptions {
|
||||
this.canPlugins = false;
|
||||
}
|
||||
setPermissionOptions (document, licType, params, permissions, isSupportEditFeature) {
|
||||
if (params.asc_getRights() !== Asc.c_oRights.Edit)
|
||||
permissions.edit = permissions.review = false;
|
||||
this.review = (permissions.review === undefined) ? (permissions.edit !== false) : permissions.review;
|
||||
this.canAnalytics = params.asc_getIsAnalyticsEnable();
|
||||
this.canLicense = (licType === Asc.c_oLicenseResult.Success || licType === Asc.c_oLicenseResult.SuccessLimit);
|
||||
|
||||
@ -64,6 +64,8 @@ export class storeAppOptions {
|
||||
}
|
||||
|
||||
setPermissionOptions (document, licType, params, permissions, isSupportEditFeature) {
|
||||
if (params.asc_getRights() !== Asc.c_oRights.Edit)
|
||||
permissions.edit = false;
|
||||
this.review = (permissions.review === undefined) ? (permissions.edit !== false) : permissions.review;
|
||||
this.canAnalytics = params.asc_getIsAnalyticsEnable();
|
||||
this.canLicense = (licType === Asc.c_oLicenseResult.Success || licType === Asc.c_oLicenseResult.SuccessLimit);
|
||||
|
||||
Reference in New Issue
Block a user