Skip to content

Commit

Permalink
Merge pull request #3948 from nextcloud/fix/skip-guest-name-on-users
Browse files Browse the repository at this point in the history
  • Loading branch information
juliushaertl authored Aug 26, 2024
2 parents 52cc761 + ddc825d commit 35fc522
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 35fc522

Please sign in to comment.