Compare commits
3 Commits
feature/ad
...
main
Author | SHA1 | Date |
---|---|---|
luiz | 2343eb2000 | |
Luiz Vasconcelos | 5cc3dcad9f | |
luiz | 43c2abf138 |
|
@ -103,6 +103,7 @@ func (m *Middleware) AdminProtectedRoute(next http.Handler) http.Handler {
|
|||
user := userOptional.(UserClaims)
|
||||
if IsAdmin(user.Groups) {
|
||||
next.ServeHTTP(w, r)
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue