[DE mobile] Fix Bug 59110 (#1969)

* [DE mobile] Fix Bug 59110
This commit is contained in:
SergeyEzhin 2022-09-20 12:01:23 +03:00 committed by GitHub
parent 026c81ff9e
commit 068c9cd6b9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -214,7 +214,16 @@ 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);
} else {
this.api.asc_addRestriction(Asc.c_oAscRestrictionType.OnlyForms)
}
this.api.asc_LoadDocument();
this.api.Resize();
};