From 887c5e462a50c8fb579ca6804f1a643d8af78fe8 Mon Sep 17 00:00:00 2001 From: Elias Schneider Date: Mon, 24 Feb 2025 09:35:44 +0100 Subject: [PATCH] fix: updating profile picture of other user updates own profile picture --- backend/internal/controller/user_controller.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/internal/controller/user_controller.go b/backend/internal/controller/user_controller.go index 90883af..3ad7b97 100644 --- a/backend/internal/controller/user_controller.go +++ b/backend/internal/controller/user_controller.go @@ -172,7 +172,7 @@ func (uc *UserController) getCurrentUserProfilePictureHandler(c *gin.Context) { } func (uc *UserController) updateUserProfilePictureHandler(c *gin.Context) { - userID := c.GetString("userID") + userID := c.Param("id") fileHeader, err := c.FormFile("file") if err != nil { c.Error(err)