diff options
author | Julius Härtl <jus@bitgrid.net> | 2021-08-12 18:17:48 +0300 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2021-08-12 18:17:48 +0300 |
commit | 95a559512f53314ad8cc9d91683936e64ec8f921 (patch) | |
tree | a98fcb42f6845b129d72e72576f943ec95cd560e /lib | |
parent | b45d41b4a7634b987f72331c2155066153bb51a4 (diff) |
Pass through direct token details to frontend
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Controller/DirectViewController.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Controller/DirectViewController.php b/lib/Controller/DirectViewController.php index 7b5cac06..b6c77a32 100644 --- a/lib/Controller/DirectViewController.php +++ b/lib/Controller/DirectViewController.php @@ -222,7 +222,8 @@ class DirectViewController extends Controller { 'instanceId' => $this->settings->getSystemValue('instanceid'), 'canonical_webroot' => $this->appConfig->getAppValue('canonical_webroot'), 'userId' => null, - 'direct' => true + 'direct' => true, + 'directGuest' => empty($direct->getUid()), ]; list($urlSrc, $token, $wopi) = $this->tokenManager->getToken($node->getId(), $direct->getShare(), $direct->getUid(), true); |