diff --git a/lib/Service/ShareService.php b/lib/Service/ShareService.php index a90da2dc1..a6b7a2030 100644 --- a/lib/Service/ShareService.php +++ b/lib/Service/ShareService.php @@ -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());