diff --git a/responses.go b/responses.go index e203106..3553517 100644 --- a/responses.go +++ b/responses.go @@ -18,7 +18,7 @@ func declareAPIAuthResponsesRoutes(router *gin.RouterGroup) { var u *User if user, ok := c.Get("user"); ok { - if !u.IsAdmin { + if !uauth.IsAdmin { c.AbortWithStatusJSON(http.StatusForbidden, gin.H{"errmsg": "Not authorized"}) return }