mirror of
https://github.com/pocket-id/pocket-id.git
synced 2025-12-23 09:15:13 +03: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) {
|
func (uc *UserController) updateUserProfilePictureHandler(c *gin.Context) {
|
||||||
userID := c.GetString("userID")
|
userID := c.Param("id")
|
||||||
fileHeader, err := c.FormFile("file")
|
fileHeader, err := c.FormFile("file")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
c.Error(err)
|
c.Error(err)
|
||||||
|
|||||||
Reference in New Issue
Block a user