We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f1f199 commit dd7d231Copy full SHA for dd7d231
internal/api/middleware/oauth.go
@@ -78,6 +78,7 @@ func DiscordAuth(bot *discordgo.Session, requiredRole string) gin.HandlerFunc {
78
c.AbortWithStatusJSON(http.StatusUnauthorized, gin.H{
79
"error": "You are not a member of the Discord server",
80
})
81
+ return
82
}
83
84
roleCache.Store(authHeader, cacheEntry{
0 commit comments