mirror of
https://github.com/ONLYOFFICE/document-server-integration.git
synced 2026-04-07 14:06:11 +08:00
php: submit filled form
This commit is contained in:
@ -72,6 +72,7 @@
|
||||
|
||||
$editorsMode = empty($_GET["action"]) ? "edit" : $_GET["action"];
|
||||
$canEdit = in_array(strtolower('.' . pathinfo($filename, PATHINFO_EXTENSION)), $GLOBALS['DOC_SERV_EDITED']);
|
||||
$submitForm = $canEdit && ($editorsMode == "edit" || $editorsMode == "fillForms");
|
||||
$mode = $canEdit && $editorsMode != "view" ? "edit" : "view";
|
||||
|
||||
$config = [
|
||||
@ -117,7 +118,8 @@
|
||||
"customization" => [
|
||||
"about" => true,
|
||||
"feedback" => true,
|
||||
"forcesave" => false,
|
||||
"forcesave" => true,
|
||||
"submitForm" => $submitForm,
|
||||
"goback" => [
|
||||
"url" => serverPath(),
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user