Skip to content

Commit

Permalink
fix: apply target userId when setting display mode
Browse files Browse the repository at this point in the history
Signed-off-by: Arthur Schiwon <[email protected]>
  • Loading branch information
blizzz committed Jul 12, 2024
1 parent 65ea493 commit 2a6a88f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Service/ShareService.php
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ public function updateDisplayMode(int $shareId, int $displayMode, string $userId
}
}

return $this->contextNavigationMapper->setDisplayModeByShareId($shareId, $displayMode, '');
return $this->contextNavigationMapper->setDisplayModeByShareId($shareId, $displayMode, $userId);
} catch (DoesNotExistException $e) {
$this->logger->error($e->getMessage(), ['exception' => $e]);
throw new NotFoundError(get_class($this) . ' - ' . __FUNCTION__ . ': '.$e->getMessage());
Expand Down

0 comments on commit 2a6a88f

Please sign in to comment.