Skip to content

Commit

Permalink
Use new property for guest indication
Browse files Browse the repository at this point in the history
Signed-off-by: Szymon Kłos <[email protected]>
  • Loading branch information
eszkadev authored and backportbot[bot] committed Jun 13, 2024
1 parent 63d9a86 commit cf4b369
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/Controller/WopiController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand Down

0 comments on commit cf4b369

Please sign in to comment.