diff options
Diffstat (limited to 'lib/Controller/WopiController.php')
-rw-r--r-- | lib/Controller/WopiController.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Controller/WopiController.php b/lib/Controller/WopiController.php index 93e83420..20cec6d9 100644 --- a/lib/Controller/WopiController.php +++ b/lib/Controller/WopiController.php @@ -509,7 +509,7 @@ class WopiController extends Controller { if ($isPutRelative) { // generate a token for the new file (the user still has to be // logged in) - list(, $wopiToken) = $this->tokenManager->getToken($file->getId(), null, $wopi->getEditorUid()); + list(, $wopiToken) = $this->tokenManager->getToken($file->getId(), null, $wopi->getEditorUid(), $wopi->getDirect()); $wopi = 'index.php/apps/richdocuments/wopi/files/' . $file->getId() . '_' . $this->config->getSystemValue('instanceid') . '?access_token=' . $wopiToken; $url = $this->urlGenerator->getAbsoluteURL($wopi); @@ -650,7 +650,7 @@ class WopiController extends Controller { // generate a token for the new file (the user still has to be // logged in) - list(, $wopiToken) = $this->tokenManager->getToken($file->getId(), null, $wopi->getEditorUid()); + list(, $wopiToken) = $this->tokenManager->getToken($file->getId(), null, $wopi->getEditorUid(), $wopi->getDirect()); $wopi = 'index.php/apps/richdocuments/wopi/files/' . $file->getId() . '_' . $this->config->getSystemValue('instanceid') . '?access_token=' . $wopiToken; $url = $this->urlGenerator->getAbsoluteURL($wopi); |