Skip to content

Commit

Permalink
Add fleetAutz back with integrations > read
Browse files Browse the repository at this point in the history
  • Loading branch information
Kerry350 committed May 16, 2023
1 parent a6a2cd1 commit 23ad878
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions x-pack/plugins/fleet/server/routes/epm/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,9 @@ export const registerRoutes = (router: FleetAuthzRouter) => {
{
path: EPM_API_ROUTES.INSTALLED_LIST_PATTERN,
validate: GetInstalledPackagesRequestSchema,
fleetAuthz: {
integrations: { readPackageInfo: true },
},
},
getInstalledListHandler
);
Expand Down Expand Up @@ -217,6 +220,9 @@ export const registerRoutes = (router: FleetAuthzRouter) => {
{
path: EPM_API_ROUTES.DATA_STREAMS_PATTERN,
validate: GetDataStreamsRequestSchema,
fleetAuthz: {
integrations: { readPackageInfo: true },
},
},
getDataStreamsHandler
);
Expand Down

0 comments on commit 23ad878

Please sign in to comment.