Merge pull request #957 from ONLYOFFICE/fix/bugfix
[Mobile] Always use user info parser
This commit is contained in:
commit
6aa8a226b9
|
@ -84,6 +84,9 @@ export class storeAppOptions {
|
||||||
&& (!!(config.customization.goback.url) || config.customization.goback.requestClose && this.canRequestClose);
|
&& (!!(config.customization.goback.url) || config.customization.goback.requestClose && this.canRequestClose);
|
||||||
this.canBack = this.canBackToFolder === true;
|
this.canBack = this.canBackToFolder === true;
|
||||||
this.canPlugins = false;
|
this.canPlugins = false;
|
||||||
|
|
||||||
|
AscCommon.UserInfoParser.setParser(true);
|
||||||
|
AscCommon.UserInfoParser.setCurrentName(this.user.fullname);
|
||||||
}
|
}
|
||||||
setPermissionOptions (document, licType, params, permissions, isSupportEditFeature) {
|
setPermissionOptions (document, licType, params, permissions, isSupportEditFeature) {
|
||||||
if (params.asc_getRights() !== Asc.c_oRights.Edit)
|
if (params.asc_getRights() !== Asc.c_oRights.Edit)
|
||||||
|
|
|
@ -61,6 +61,9 @@ export class storeAppOptions {
|
||||||
&& (!!(config.customization.goback.url) || config.customization.goback.requestClose && this.canRequestClose);
|
&& (!!(config.customization.goback.url) || config.customization.goback.requestClose && this.canRequestClose);
|
||||||
this.canBack = this.canBackToFolder === true;
|
this.canBack = this.canBackToFolder === true;
|
||||||
this.canPlugins = false;
|
this.canPlugins = false;
|
||||||
|
|
||||||
|
AscCommon.UserInfoParser.setParser(true);
|
||||||
|
AscCommon.UserInfoParser.setCurrentName(this.user.fullname);
|
||||||
}
|
}
|
||||||
|
|
||||||
setPermissionOptions (document, licType, params, permissions, isSupportEditFeature) {
|
setPermissionOptions (document, licType, params, permissions, isSupportEditFeature) {
|
||||||
|
|
|
@ -68,6 +68,9 @@ export class storeAppOptions {
|
||||||
&& (!!(config.customization.goback.url) || config.customization.goback.requestClose && this.canRequestClose);
|
&& (!!(config.customization.goback.url) || config.customization.goback.requestClose && this.canRequestClose);
|
||||||
this.canBack = this.canBackToFolder === true;
|
this.canBack = this.canBackToFolder === true;
|
||||||
this.canPlugins = false;
|
this.canPlugins = false;
|
||||||
|
|
||||||
|
AscCommon.UserInfoParser.setParser(true);
|
||||||
|
AscCommon.UserInfoParser.setCurrentName(this.user.fullname);
|
||||||
}
|
}
|
||||||
|
|
||||||
setPermissionOptions (document, licType, params, permissions, isSupportEditFeature) {
|
setPermissionOptions (document, licType, params, permissions, isSupportEditFeature) {
|
||||||
|
|
Loading…
Reference in a new issue