فهرست منبع

fix logs 403 error

Alexander Belanger 5 سال پیش
والد
کامیت
f6726dbbcc
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  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)