Skip to content

Commit

Permalink
[ML] Making job wizard chart endpoints admin only (#181329)
Browse files Browse the repository at this point in the history
The endpoints used supply the data for charts in the AD job wizards are
only ever called internally by admin users and so should have a more
appropriate capability level.
  • Loading branch information
jgowdyelastic authored Apr 24, 2024
1 parent 31ccbbc commit d70d0ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions x-pack/plugins/ml/server/routes/job_service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -702,7 +702,7 @@ export function jobServiceRoutes({ router, routeGuard }: RouteInitialization) {
path: `${ML_INTERNAL_BASE_PATH}/jobs/new_job_line_chart`,
access: 'internal',
options: {
tags: ['access:ml:canGetJobs'],
tags: ['access:ml:canCreateJob'],
},
})
.addVersion(
Expand Down Expand Up @@ -768,7 +768,7 @@ export function jobServiceRoutes({ router, routeGuard }: RouteInitialization) {
path: `${ML_INTERNAL_BASE_PATH}/jobs/new_job_population_chart`,
access: 'internal',
options: {
tags: ['access:ml:canGetJobs'],
tags: ['access:ml:canCreateJob'],
},
})
.addVersion(
Expand Down

0 comments on commit d70d0ee

Please sign in to comment.