Explorar o código

fix logs 403 error

Alexander Belanger %!s(int64=5) %!d(string=hai) anos
pai
achega
f6726dbbcc
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      server/router/middleware/auth.go

+ 1 - 1
server/router/middleware/auth.go

@@ -327,7 +327,7 @@ func (auth *Auth) DoesUserHaveInfraAccess(
 	infraLoc IDLocation,
 ) http.Handler {
 	return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
-		infraID, err := findGitRepoIDInRequest(r, infraLoc)
+		infraID, err := findInfraIDInRequest(r, infraLoc)
 
 		if err != nil {
 			http.Error(w, http.StatusText(http.StatusForbidden), http.StatusForbidden)