Skip to content

Commit

Permalink
fix: not having a role should return 403
Browse files Browse the repository at this point in the history
  • Loading branch information
hpr1999 committed Aug 8, 2024
1 parent 8635e26 commit 22638e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func verifyRole(role string, next func(http.ResponseWriter, *http.Request)) func
}

if !users.CheckRole(s.Role, role) {
respondUnauthorized(w)
respondForbidden(w)
return
}
next(w, r)
Expand Down

0 comments on commit 22638e4

Please sign in to comment.