From dc8bb555018696c422b46b4da7e30f485688596f Mon Sep 17 00:00:00 2001 From: Lukas Zapletal Date: Wed, 9 Aug 2023 13:39:37 +0200 Subject: [PATCH] fix(HMS-1453): disable RBAC for sources Signed-off-by: Lukas Zapletal --- internal/routes/all_routes.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/internal/routes/all_routes.go b/internal/routes/all_routes.go index 4c81407a..3a4f45b5 100644 --- a/internal/routes/all_routes.go +++ b/internal/routes/all_routes.go @@ -61,10 +61,11 @@ func MountAPI(r *chi.Mux) { // OpenAPI documented and supported routes r.Route("/sources", func(r chi.Router) { + // https://issues.redhat.com/browse/HMS-2305 + // r.Use(middleware.EnforcePermissions("source", "read")) + r.Get("/", s.ListSources) r.Route("/{ID}", func(r chi.Router) { - r.Use(middleware.EnforcePermissions("source", "read")) - r.Get("/status", s.SourcesStatus) // TODO DEPRECATED: move this to outside of /sources (see below)