aboutsummaryrefslogtreecommitdiff
path: root/internal/authz
diff options
context:
space:
mode:
authorMax Resnick <max@ofmax.li>2024-05-04 10:24:48 -0700
committerMax Resnick <max@ofmax.li>2024-05-20 21:33:57 -0700
commitb8584fec70bd6810fa2392deadc69595b3e94cfa (patch)
tree2c2b17e06f780ad7d6ba46a0189f4faf45629fcb /internal/authz
parent11fe503d5ea17fa3ddc4ce2308ea82b6edc7763e (diff)
downloadgo-git-server-b8584fec70bd6810fa2392deadc69595b3e94cfa.tar.gz
feat: refactor of repo management
Diffstat (limited to '')
-rw-r--r--internal/authz/middleware.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/authz/middleware.go b/internal/authz/middleware.go
index f4838ec..f7e1728 100644
--- a/internal/authz/middleware.go
+++ b/internal/authz/middleware.go
@@ -64,7 +64,7 @@ func Authorization(adminSvc *admin.Servicer, next http.Handler) http.Handler {
action := req.Method
ok, err := adminSvc.Enforce(urn, repo, action)
if err != nil {
- slog.Info("error unning enforce", "error", err)
+ slog.Info("error running enforce", "error", err)
http.Error(rw, "Bad Request", http.StatusBadRequest)
return
}