Added missing return statement
This commit is contained in:
parent
43c2abf138
commit
5cc3dcad9f
|
@ -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