diff --git a/horusec-api/internal/router/router.go b/horusec-api/internal/router/router.go index 62500c6e4..b8d72239e 100644 --- a/horusec-api/internal/router/router.go +++ b/horusec-api/internal/router/router.go @@ -164,7 +164,7 @@ func (r *Router) RouterManagement( handler := management.NewHandler(postgresRead, postgresWrite) r.router.Route(routes.ManagementHandler, func(router chi.Router) { router.Use(jwt.AuthMiddleware) - router.With(repositoryMiddleware.IsRepositorySupervisor).Get("/", handler.Get) + router.With(repositoryMiddleware.IsRepositoryMember).Get("/", handler.Get) router.With(repositoryMiddleware.IsRepositorySupervisor).Put("/{vulnerabilityID}/type", handler.UpdateVulnType) router.Options("/", handler.Options)