new branch + anonymus without id

This commit is contained in:
Olga Larinova
2022-03-02 11:16:24 +03:00
parent 254fbaccea
commit b9f3bfd2e2
8 changed files with 9 additions and 9 deletions

4
web/documentserver-example/php/doceditor.php Normal file → Executable file
View File

@ -119,7 +119,7 @@
"createUrl" => $user->id != "uid-0" ? $createUrl : null,
"templates" => $user->templates ? $templates : null,
"user" => [ // the user currently viewing or editing the document
"id" => $user->id,
"id" => $user->id != "uid-0" ? $user->id : null,
"name" => $user->name,
"group" => $user->group
],
@ -203,7 +203,7 @@
return serverPath(false) . '/'
. "doceditor.php"
. "?fileExt=" . $ext
. "&user=" . $uid
. "&user=" . $uid
. "&type=" . $type;
}