settings for "review" mode
This commit is contained in:
parent
54716330fc
commit
14097c6fd1
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue