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:
authorJulius Härtl <jus@bitgrid.net>2021-08-12 18:17:48 +0300
committerJulius Härtl <jus@bitgrid.net>2021-08-12 18:17:48 +0300
commit95a559512f53314ad8cc9d91683936e64ec8f921 (patch)
treea98fcb42f6845b129d72e72576f943ec95cd560e /lib
parentb45d41b4a7634b987f72331c2155066153bb51a4 (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.php3
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);