mirror of
https://github.com/ONLYOFFICE/document-server-integration.git
synced 2026-02-10 18:05:10 +08:00
nodejs: fix review mode
This commit is contained in:
@ -595,7 +595,7 @@ app.get("/editor", function (req, res) {
|
||||
key: key,
|
||||
token: "",
|
||||
callbackUrl: docManager.getCallback(fileName),
|
||||
isEdit: canEdit && mode != "review",
|
||||
isEdit: canEdit && mode == "edit",
|
||||
mode: canEdit && mode != "view" ? "edit" : "view",
|
||||
canBackToFolder: type != "embedded",
|
||||
backUrl: docManager.getServerUrl(),
|
||||
|
||||
@ -14,7 +14,7 @@
|
||||
},
|
||||
"permissions": {
|
||||
"download": true,
|
||||
"edit": "<%- editor.isEdit %>",
|
||||
"edit": <%- editor.isEdit %>,
|
||||
"review": true
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user