Skip to content

Commit

Permalink
Stick to the actual user id when available
Browse files Browse the repository at this point in the history
Signed-off-by: Julius Härtl <jus@bitgrid.net>
  • Loading branch information
juliushaertl committed May 18, 2022
1 parent a0ecf06 commit db88e8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Controller/WopiController.php
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ public function checkFileInfo(string $fileId, string $access_token): JSONRespons
'BaseFileName' => $file->getName(),
'Size' => $file->getSize(),
'Version' => $version,
'UserId' => !$wopi->isGuest() ? $wopi->getEditorUid() : $guestUserId,
'UserId' => !empty($wopi->getEditorUid()) ? $wopi->getEditorUid() : $guestUserId,
'OwnerId' => $wopi->getOwnerUid(),
'UserFriendlyName' => $userDisplayName,
'UserExtraInfo' => [],
Expand Down

0 comments on commit db88e8e

Please sign in to comment.