Skip to content

Commit

Permalink
fix: Authorisation when using roles would cease after first role check
Browse files Browse the repository at this point in the history
  • Loading branch information
VeryStrongFingers committed Jan 25, 2024
1 parent 8886d2c commit 43fbe4e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions module_callback.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,8 @@ func (d DiscordAuthPlugin) ServeHTTP(w http.ResponseWriter, r *http.Request, _ c
// Found a valid role assigned.
if matchedRole != "" {
allowed = true
break
}

break
}

allowed = true
Expand Down

0 comments on commit 43fbe4e

Please sign in to comment.