refactor(middleware): remove RequireGlobalAuth wrapper
This commit is contained in:
@@ -51,7 +51,7 @@ func TestRequireAuth_AuthenticatedRequestPassesThrough(t *testing.T) {
|
||||
func TestRequireGlobalAuth_AllowsPublicRoute(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
h := RequireGlobalAuth(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
||||
h := RequireGlobalAuthWithPolicy(NewAccessPolicy())(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
||||
w.WriteHeader(http.StatusOK)
|
||||
}))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user