Merge pull request #531 from ONLYOFFICE/maxkadushkin-patch-1

settings for "review" mode
This commit is contained in:
maxkadushkin 2020-10-22 10:26:45 +03:00 committed by GitHub
commit 7e161e8986
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -80,7 +80,7 @@
} }
function getDocumentData(urlParams) { function getDocumentData(urlParams) {
return { let docparams = {
key: urlParams["key"], key: urlParams["key"],
url: urlParams["url"] || '_offline_', url: urlParams["url"] || '_offline_',
title: urlParams["title"], title: urlParams["title"],
@ -91,6 +91,11 @@
download: true download: true
} }
}; };
if (urlParams['mode'] == 'review')
docparams.permissions.edit = !(docparams.permissions.review = true);
return docparams;
} }
function getEditorConfig(urlParams) { function getEditorConfig(urlParams) {