From 2a6a88f7bbfb6ecd3ebe72a4e177c85a8698bb55 Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Fri, 12 Jul 2024 13:15:43 +0200 Subject: [PATCH] fix: apply target userId when setting display mode Signed-off-by: Arthur Schiwon --- lib/Service/ShareService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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());