From 36aef9af1a7ac878d8d7c1fb9c359f14d232dd3f Mon Sep 17 00:00:00 2001 From: Max Resnick Date: Thu, 22 Aug 2024 22:01:57 -0700 Subject: fix: add tests for anon --- internal/authz/middleware.go | 1 - 1 file changed, 1 deletion(-) (limited to 'internal/authz/middleware.go') diff --git a/internal/authz/middleware.go b/internal/authz/middleware.go index 2aa4ba7..3ba95ad 100644 --- a/internal/authz/middleware.go +++ b/internal/authz/middleware.go @@ -76,7 +76,6 @@ func Authorization(adminSvc *admin.Servicer, next http.Handler) http.Handler { slog.Info("Not Authorized", "urn", urn, "repo", repo) http.Error(rw, "Access denied", http.StatusForbidden) return - } slog.Debug("Access Attempt", "action", action, "repo", repo) next.ServeHTTP(rw, req.WithContext(ctx)) -- cgit v1.2.3