Skip to content

Commit

Permalink
Merge pull request #3678 from nextcloud/backport/3676/stable28
Browse files Browse the repository at this point in the history
[stable28] fix: Do not set user id for guests
  • Loading branch information
juliusknorr authored May 8, 2024
2 parents b857a75 + fd6ab30 commit 6976110
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions lib/Controller/DocumentController.php
Original file line number Diff line number Diff line change
Expand Up @@ -381,10 +381,6 @@ public function token(int $fileId, ?string $shareToken = null, ?string $path = n
$share = $shareToken ? $this->shareManager->getShareByToken($shareToken) : null;
$file = $shareToken ? $this->getFileForShare($share, $fileId, $path) : $this->getFileForUser($fileId, $path);

if ($this->userId === null) {
$this->userId = $guestName;
}

$wopi = $this->getToken($file, $share);

return new DataResponse(array_merge(
Expand Down

0 comments on commit 6976110

Please sign in to comment.