[DE mobile] Fix Bug 59110

This commit is contained in:
SergeyEzhin 2022-09-20 11:34:03 +03:00
parent 661825ace9
commit 4fca1bcb94

View file

@ -214,7 +214,14 @@ class MainController extends Component {
this.applyMode(storeAppOptions);
this.api.asc_addRestriction(Asc.c_oAscRestrictionType.View);
const storeDocumentInfo = this.props.storeDocumentInfo;
const dataDoc = storeDocumentInfo.dataDoc;
const isExtRestriction = dataDoc.fileType !== 'oform';
if(isExtRestriction) {
this.api.asc_addRestriction(Asc.c_oAscRestrictionType.View);
}
this.api.asc_LoadDocument();
this.api.Resize();
};