From cf4b369e713003fcddc3647eacc4960e34b25de9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Szymon=20K=C5=82os?= Date: Wed, 12 Jun 2024 11:53:41 +0200 Subject: [PATCH] Use new property for guest indication MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Szymon Kłos --- lib/Controller/WopiController.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/Controller/WopiController.php b/lib/Controller/WopiController.php index 2bbdc4d5ff..ed0a5fc7ac 100644 --- a/lib/Controller/WopiController.php +++ b/lib/Controller/WopiController.php @@ -233,7 +233,10 @@ public function checkFileInfo($fileId, $access_token) { } if ($isPublic) { - $response['UserExtraInfo']['is_guest'] = true; + $response['UserExtraInfo']['is_guest'] = true; // DEPRECATED + $response['IsAnonymousUser'] = true; + } else { + $response['IsAnonymousUser'] = false; } if ($wopi->isRemoteToken()) {