remove edit elements if user is not owner

This commit is contained in:
2026-02-01 22:48:07 +01:00
parent 321339861f
commit 9bf36599fb
14 changed files with 237 additions and 40 deletions
+5
View File
@@ -25,6 +25,11 @@ func UpdateCharacterImage(c *gin.Context) {
return
}
// Check ownership
if !checkCharacterOwnership(c, &character) {
return
}
var request ImageUpdateRequest
if err := c.ShouldBindJSON(&request); err != nil {
logger.Error("Invalid request data: %s", err.Error())