Support review parameter for wopi

This commit is contained in:
Julia Radzhabova 2021-05-07 00:26:42 +03:00
parent 3b517bdc49
commit 8429cab65b

View file

@ -205,6 +205,7 @@ div {
},
"permissions": {
"edit": !fileInfo.ReadOnly && fileInfo.UserCanWrite,
"review": (fileInfo.SupportsReviewing===false) ? false : (fileInfo.UserCanReview===false ? false : fileInfo.UserCanReview),
"copy": fileInfo.CopyPasteRestrictions!=="CurrentDocumentOnly" && fileInfo.CopyPasteRestrictions!=="BlockAll",
"print": !fileInfo.DisablePrint
}