diff options
author | Ashod Nakashian <ashod.nakashian@collabora.co.uk> | 2020-09-20 21:51:20 +0300 |
---|---|---|
committer | Ashod Nakashian <ashod.nakashian@collabora.co.uk> | 2020-09-20 21:51:22 +0300 |
commit | 6a64dbfd678760ee78d6b541d1dfb32bf3fcc629 (patch) | |
tree | be72b7500f8da607a2f8937d9a487d07c264f0fd /lib | |
parent | 2e9db1225f4bb45f74cd2ad3b6adae2a8a493eff (diff) |
Template sourced documents support DownloadAsPostMessage
DownloadAsPostMessage is specific to the client, not the
document. When creating new documents from templates, we
should still respect the DownloadAsPostMessage flag.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/TokenManager.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/TokenManager.php b/lib/TokenManager.php index 5cf085d9..3c39afd3 100644 --- a/lib/TokenManager.php +++ b/lib/TokenManager.php @@ -259,7 +259,7 @@ class TokenManager { $serverHost = $this->urlGenerator->getAbsoluteURL('/'); if ($this->capabilitiesService->hasTemplateSource()) { - $wopi = $this->wopiMapper->generateFileToken($targetFile->getId(), $owneruid, $editoruid, 0, (int)$updatable, $serverHost, null, 0, false, false, false, $templateFile->getId()); + $wopi = $this->wopiMapper->generateFileToken($targetFile->getId(), $owneruid, $editoruid, 0, (int)$updatable, $serverHost, null, 0, false, $direct, false, $templateFile->getId()); } else { // Legacy way of creating new documents from a template $wopi = $this->wopiMapper->generateFileToken($templateFile->getId(), $owneruid, $editoruid, 0, (int)$updatable, $serverHost, null, $targetFile->getId(), $direct); |