Skip to content

Commit

Permalink
fix: Do not set a guest name on actual users
Browse files Browse the repository at this point in the history
Signed-off-by: Julius Härtl <jus@bitgrid.net>
  • Loading branch information
juliusknorr committed Aug 26, 2024
1 parent fed8437 commit 29b7a84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/TokenManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ public function generateWopiToken(string $fileId, ?string $shareToken = null, ?s
);

$serverHost = $this->urlGenerator->getAbsoluteURL('/');
$guestName = $editoruid === null ? $this->prepareGuestName($this->helper->getGuestNameFromCookie()) : $editoruid;
$guestName = $editoruid === null ? $this->prepareGuestName($this->helper->getGuestNameFromCookie()) : null;
return $this->wopiMapper->generateFileToken($fileId, $owneruid, $editoruid, $version, $updatable, $serverHost, $guestName, $hideDownload, $direct, 0, $shareToken);
}

Expand Down

0 comments on commit 29b7a84

Please sign in to comment.