Merge branch 'feature/chat' into develop

This commit is contained in:
Sergey Linnik
2022-04-18 15:25:42 +03:00
parent 33f8436d42
commit b5e345ed50
3 changed files with 3 additions and 0 deletions

View File

@ -909,6 +909,7 @@ app.get("/editor", function (req, res) { // define a handler for editing docume
templates: user.templates ? templates : null,
isEdit: canEdit && (mode == "edit" || mode == "view" || mode == "filter" || mode == "blockcontent"),
review: canEdit && (mode == "edit" || mode == "review"),
chat: userid != "uid-0",
comment: mode != "view" && mode != "fillForms" && mode != "embedded" && mode != "blockcontent",
fillForms: mode != "view" && mode != "comment" && mode != "embedded" && mode != "blockcontent",
modifyFilter: mode != "filter",

View File

@ -60,6 +60,7 @@ var descr_user_0 = [
"Can't create new files from the editor",
"Cant see anyones information",
"Can't rename files from the editor",
"Can't view chat",
//"Cant submit forms"
];

View File

@ -14,6 +14,7 @@
"favorite": <%- file.favorite %>
},
"permissions": {
"chat": <%- editor.chat %>,
"comment": <%- editor.comment %>,
"copy": <%- editor.copy %>,
"download": <%- editor.download %>,