aboutsummaryrefslogtreecommitdiff
path: root/internal/authz/middleware.go
diff options
context:
space:
mode:
authorMax Resnick <max@ofmax.li>2022-12-26 08:37:55 -0800
committerMax Resnick <max@ofmax.li>2022-12-26 08:37:55 -0800
commit0ac7b93645b169c55f9c50423fab9d4a402e9918 (patch)
treed4ec51e99e073d294c0bee030af29b38212f8146 /internal/authz/middleware.go
parentec633ec4c55f0098535d6a438e3bc4c3786ad486 (diff)
downloadgo-git-server-0ac7b93645b169c55f9c50423fab9d4a402e9918.tar.gz
update tests for latest refactor
Diffstat (limited to 'internal/authz/middleware.go')
-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 41672f2..f01f262 100644
--- a/internal/authz/middleware.go
+++ b/internal/authz/middleware.go
@@ -40,7 +40,7 @@ func Authentication(authMap TokenMap, next http.Handler) http.Handler {
}
// Authorization middleware to enforce authoirzation of all requests.
-func Authorization(adminSvc *admin.Service, next http.Handler) http.Handler {
+func Authorization(adminSvc *admin.Servicer, next http.Handler) http.Handler {
return http.HandlerFunc(func(rw http.ResponseWriter, req *http.Request) {
ctx := req.Context()
urn := ctx.Value("urn")