mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-07-25 14:36:49 +08:00
@ -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();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user