diff --git a/apps/api/documents/index.html.desktop b/apps/api/documents/index.html.desktop
index 531e301c3..75c76bbef 100644
--- a/apps/api/documents/index.html.desktop
+++ b/apps/api/documents/index.html.desktop
@@ -80,7 +80,7 @@
}
function getDocumentData(urlParams) {
- return {
+ let docparams = {
key: urlParams["key"],
url: urlParams["url"] || '_offline_',
title: urlParams["title"],
@@ -91,6 +91,11 @@
download: true
}
};
+
+ if (urlParams['mode'] == 'review')
+ docparams.permissions.edit = !(docparams.permissions.review = true);
+
+ return docparams;
}
function getEditorConfig(urlParams) {