diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2018-11-08 13:11:02 +0300 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2018-11-08 13:11:02 +0300 |
commit | dd053529e8b496a3c9a3d05d8c9825d1815e2c69 (patch) | |
tree | 6a63722bb615fd89defee54ac04e79303b59de5c /lib | |
parent | fb520729d778fea7d2e5689de2ff97198e70518a (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.php | 2 |
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(), |