Skip to content

Commit

Permalink
Change compliance:*:export to list
Browse files Browse the repository at this point in the history
Signed-off-by: Tyler Cloke <tylercloke@gmail.com>
  • Loading branch information
tylercloke committed May 8, 2020
1 parent 6f04b80 commit 7f44352
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/automate-gateway/gateway/services.go
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,7 @@ func (s *Server) ReportExportHandler(w http.ResponseWriter, r *http.Request) {
// request body.
const (
resource = "compliance:reporting:reports"
action = "compliance:reports:export"
action = "compliance:reports:list"
)

ctx, err := s.authRequest(r, resource, action)
Expand Down Expand Up @@ -622,7 +622,7 @@ func writeContent(w http.ResponseWriter, stream reporting.ReportingService_Expor
func (s *Server) NodeExportHandler(w http.ResponseWriter, r *http.Request) {
const (
resource = "compliance:reporting:nodes:{id}"
action = "compliance:reportNodes:export"
action = "compliance:reportNodes:list"
)

ctx, err := s.authRequest(r, resource, action)
Expand Down

0 comments on commit 7f44352

Please sign in to comment.