We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c37782d commit cef38afCopy full SHA for cef38af
internal/routes.go
@@ -551,6 +551,10 @@ func (a *App) upsertTopic(c *gin.Context) {
551
c.AbortWithStatusJSON(http.StatusBadRequest, err)
552
return
553
}
554
+ if c.Param("topicID") != fmt.Sprintf("%d", r.ID) {
555
+ c.AbortWithStatusJSON(http.StatusBadRequest, "Topic ID doesn't match")
556
+ return
557
+ }
558
if len(r.Fields) == 0 {
559
c.AbortWithStatusJSON(http.StatusBadRequest, "Please provide at least one question")
560
0 commit comments