Added missing return statement #6
|
@ -103,6 +103,7 @@ func (m *Middleware) AdminProtectedRoute(next http.Handler) http.Handler {
|
||||||
user := userOptional.(UserClaims)
|
user := userOptional.(UserClaims)
|
||||||
if IsAdmin(user.Groups) {
|
if IsAdmin(user.Groups) {
|
||||||
next.ServeHTTP(w, r)
|
next.ServeHTTP(w, r)
|
||||||
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue