Merge pull request #957 from ONLYOFFICE/fix/bugfix

[Mobile] Always use user info parser
This commit is contained in:
Julia Radzhabova 2021-07-02 02:11:53 +03:00 committed by GitHub
commit 6aa8a226b9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 0 deletions

View file

@ -84,6 +84,9 @@ export class storeAppOptions {
&& (!!(config.customization.goback.url) || config.customization.goback.requestClose && this.canRequestClose);
this.canBack = this.canBackToFolder === true;
this.canPlugins = false;
AscCommon.UserInfoParser.setParser(true);
AscCommon.UserInfoParser.setCurrentName(this.user.fullname);
}
setPermissionOptions (document, licType, params, permissions, isSupportEditFeature) {
if (params.asc_getRights() !== Asc.c_oRights.Edit)

View file

@ -61,6 +61,9 @@ export class storeAppOptions {
&& (!!(config.customization.goback.url) || config.customization.goback.requestClose && this.canRequestClose);
this.canBack = this.canBackToFolder === true;
this.canPlugins = false;
AscCommon.UserInfoParser.setParser(true);
AscCommon.UserInfoParser.setCurrentName(this.user.fullname);
}
setPermissionOptions (document, licType, params, permissions, isSupportEditFeature) {

View file

@ -68,6 +68,9 @@ export class storeAppOptions {
&& (!!(config.customization.goback.url) || config.customization.goback.requestClose && this.canRequestClose);
this.canBack = this.canBackToFolder === true;
this.canPlugins = false;
AscCommon.UserInfoParser.setParser(true);
AscCommon.UserInfoParser.setCurrentName(this.user.fullname);
}
setPermissionOptions (document, licType, params, permissions, isSupportEditFeature) {