nodejs, java, php, csharp, csharp-mvc, python, ruby: forbidden download, print and copy for uid-3

This commit is contained in:
Aleksandr Fedorov
2021-04-22 16:27:52 +03:00
parent d8590783d8
commit 0b0cdd395c
7 changed files with 21 additions and 21 deletions

View File

@ -97,10 +97,10 @@
],
"permissions" => [ // the permission for the document to be edited and downloaded or not
"comment" => $editorsMode != "view" && $editorsMode != "fillForms" && $editorsMode != "embedded" && $editorsMode != "blockcontent",
"copy" => $uid == 1 ? false : true,
"download" => $uid == 1 ? false : true,
"copy" => $uid == 2 ? false : true,
"download" => $uid == 2 ? false : true,
"edit" => $canEdit && ($editorsMode == "edit" || $editorsMode == "view" || $editorsMode == "filter" || $editorsMode == "blockcontent"),
"print" => $uid == 1 ? false : true,
"print" => $uid == 2 ? false : true,
"fillForms" => $editorsMode != "view" && $editorsMode != "comment" && $editorsMode != "embedded" && $editorsMode != "blockcontent",
"modifyFilter" => $editorsMode != "filter",
"modifyContentControl" => $editorsMode != "blockcontent",