diff --git a/lib/Controller/DocumentController.php b/lib/Controller/DocumentController.php index 23d82754b3..ca75ad1df3 100644 --- a/lib/Controller/DocumentController.php +++ b/lib/Controller/DocumentController.php @@ -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(