Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/richdocuments.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2018-11-08 13:11:02 +0300
committerRoeland Jago Douma <roeland@famdouma.nl>2018-11-08 13:11:02 +0300
commitdd053529e8b496a3c9a3d05d8c9825d1815e2c69 (patch)
tree6a63722bb615fd89defee54ac04e79303b59de5c /lib
parentfb520729d778fea7d2e5689de2ff97198e70518a (diff)
Pass the uid when generating a WOPI token for a directview
Else the editor will show up as a ? in the editorlist. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib')
-rw-r--r--lib/Controller/DirectViewController.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Controller/DirectViewController.php b/lib/Controller/DirectViewController.php
index 0254692a..2ba8d64f 100644
--- a/lib/Controller/DirectViewController.php
+++ b/lib/Controller/DirectViewController.php
@@ -92,7 +92,7 @@ class DirectViewController extends Controller {
if(!($item instanceof Node)) {
throw new \Exception();
}
- list($urlSrc, $token) = $this->tokenManager->getToken($item->getId());
+ list($urlSrc, $token) = $this->tokenManager->getToken($item->getId(), null, $direct->getUid());
$params = [
'permissions' => $item->getPermissions(),
'title' => $item->getName(),