Compare commits
2 Commits
43c2abf138
...
2343eb2000
Author | SHA1 | Date |
---|---|---|
luiz | 2343eb2000 | |
Luiz Vasconcelos | 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