mirror of
https://github.com/nikdoof/pocket-id.git
synced 2025-12-19 12:49:28 +00:00
fix: updating profile picture of other user updates own profile picture
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user