mirror of
https://github.com/ONLYOFFICE/document-server-integration.git
synced 2026-04-07 14:06:11 +08:00
Merge branch 'develop' into refactor/php-example-refactoring
This commit is contained in:
@ -32,6 +32,7 @@ use function OnlineEditorsExamplePhp\getStoragePath;
|
||||
use function OnlineEditorsExamplePhp\getTemplateImageUrl;
|
||||
use function OnlineEditorsExamplePhp\serverPath;
|
||||
use function OnlineEditorsExamplePhp\tryGetDefaultByType;
|
||||
use function OnlineEditorsExamplePhp\getCurUserHostAddress;
|
||||
|
||||
final class DocEditorView extends View
|
||||
{
|
||||
@ -133,6 +134,14 @@ final class DocEditorView extends View
|
||||
"reviewGroups" => $user->reviewGroups,
|
||||
"commentGroups" => $user->commentGroups,
|
||||
"userInfoGroups" => $user->userInfoGroups,
|
||||
"protect" => !in_array("protect", $user->deniedPermissions),
|
||||
],
|
||||
"referenceData" => [
|
||||
"fileKey" => $user->id != "uid-0" ? json_encode([
|
||||
"fileName" => $filename,
|
||||
"userAddress" => getCurUserHostAddress()
|
||||
]) : null,
|
||||
"instanceId" => serverPath(),
|
||||
],
|
||||
],
|
||||
"editorConfig" => [
|
||||
|
||||
Reference in New Issue
Block a user