(c *gin.Context)
| 111 | } |
| 112 | |
| 113 | func adminCheck(c *gin.Context) { |
| 114 | s := getSession(c) |
| 115 | |
| 116 | if s.MustGetBool("admin") { |
| 117 | c.Next() |
| 118 | return |
| 119 | } |
| 120 | |
| 121 | abortWithError(c, http.StatusForbidden, ErrNotAuthorizedAdmin) |
| 122 | } |
| 123 | |
| 124 | func getDeveloperInfo(c *gin.Context) { |
| 125 | developer := getDeveloperID(c) |
nothing calls this directly
no test coverage detected