Skip to content

Commit

Permalink
Merge pull request #3950 from nextcloud/backport/3948/stable30
Browse files Browse the repository at this point in the history
[stable30] fix: Do not set a guest name on actual users
  • Loading branch information
elzody committed Aug 26, 2024
2 parents 11a83d2 + ddf14bb commit 68e00de
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 68e00de

Please sign in to comment.