Change loader for modes with compact header

This commit is contained in:
Julia Radzhabova 2019-11-25 11:02:50 +03:00
parent e12898afa3
commit d6584c6e49

View file

@ -782,7 +782,11 @@
if (config.frameEditorId)
params += "&frameEditorId=" + config.frameEditorId;
if (config.editorConfig && (config.editorConfig.mode == 'view' || config.editorConfig.customization && !!config.editorConfig.customization.compactHeader) ||
config.document && config.document.permissions && (config.document.permissions.edit === false && !config.document.permissions.review ))
params += "&mode=view";
return params;
}