Skip to content

Commit

Permalink
[ML] _has_privileges validate body
Browse files Browse the repository at this point in the history
  • Loading branch information
darnautov committed Feb 19, 2020
1 parent 73128ed commit ead4408
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion x-pack/legacy/plugins/ml/server/routes/system.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@ export function systemRoutes({
router.post(
{
path: '/api/ml/_has_privileges',
validate: false,
validate: {
body: schema.maybe(schema.any()),
},
},
licensePreRoutingFactory(xpackMainPlugin, async (context, request, response) => {
try {
Expand Down

0 comments on commit ead4408

Please sign in to comment.