MCPcopy Create free account
hub / github.com/TalkingData/owl / verifyAndInjectUserGroupID

Function verifyAndInjectUserGroupID

api/verify.go:53–59  ·  view source on GitHub ↗
(c *gin.Context)

Source from the content-addressed store, hash-verified

51}
52
53func verifyAndInjectUserGroupID(c *gin.Context) {
54 productID, err := strconv.Atoi(c.Param("user_group_id"))
55 if err != nil {
56 c.AbortWithStatusJSON(http.StatusOK, gin.H{"code": http.StatusBadRequest})
57 }
58 c.Set("user_group_id", productID)
59}
60
61func verifyAndInjectPanelID(c *gin.Context) {
62 panelID, err := strconv.Atoi(c.Param("panel_id"))

Callers

nothing calls this directly

Calls 1

SetMethod · 0.80

Tested by

no test coverage detected