Skip to content

Commit

Permalink
fix(HMS-1453): disable RBAC for sources
Browse files Browse the repository at this point in the history
Signed-off-by: Lukas Zapletal <lzap+git@redhat.com>
  • Loading branch information
lzap committed Aug 9, 2023
1 parent 0a66644 commit dc8bb55
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions internal/routes/all_routes.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit dc8bb55

Please sign in to comment.