From 4fca1bcb94200937e428e5316a9abe33a7964747 Mon Sep 17 00:00:00 2001 From: SergeyEzhin Date: Tue, 20 Sep 2022 11:34:03 +0300 Subject: [PATCH] [DE mobile] Fix Bug 59110 --- apps/documenteditor/mobile/src/controller/Main.jsx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/apps/documenteditor/mobile/src/controller/Main.jsx b/apps/documenteditor/mobile/src/controller/Main.jsx index 4a9b0e39a..55a474c7f 100644 --- a/apps/documenteditor/mobile/src/controller/Main.jsx +++ b/apps/documenteditor/mobile/src/controller/Main.jsx @@ -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(); };