From b83b816ce8442242284fdc68414334fd36bf5923 Mon Sep 17 00:00:00 2001 From: Matthew Dillon Date: Fri, 10 Apr 2015 11:02:59 -0800 Subject: [PATCH] Removing genus check in authHandler --- handlers.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/handlers.go b/handlers.go index 5962bc4..6c2abde 100644 --- a/handlers.go +++ b/handlers.go @@ -94,12 +94,6 @@ func authHandler(f func(http.ResponseWriter, *http.Request)) http.Handler { http.Error(w, errGenericError.Error(), http.StatusInternalServerError) return } - genus := mux.Vars(r)["genus"] - // We don't care about this if we aren't accessing one of the subrouter routes. - if genus != "" && genus != token.Claims["genus"] { - http.Error(w, errAccessDenied.Error(), http.StatusUnauthorized) - return - } h.ServeHTTP(w, r) } return http.HandlerFunc(auth)