This commit is contained in:
2023-05-20 12:08:12 -05:00
parent 38f69dc565
commit 0c254eb1ee

View File

@@ -86,7 +86,7 @@ func authMiddleware(allowedGroups []string) gin.HandlerFunc {
if !isAllowed { if !isAllowed {
c.AbortWithStatusJSON(http.StatusUnauthorized, gin.H{ c.AbortWithStatusJSON(http.StatusUnauthorized, gin.H{
"message": "Unauthorized access", "message": "Unauthorized access",
"groups": allowedGroups, "groups": groups,
}) })
return return
} }