Skip to content

Commit

Permalink
[ML] Fixing field caps wrapper endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
jgowdyelastic committed Sep 15, 2020
1 parent 93e37af commit e18cd87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x-pack/plugins/ml/server/routes/indices.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export function indicesRoutes({ router, mlLicense }: RouteInitialization) {
requestFields !== undefined && Array.isArray(requestFields)
? requestFields.join(',')
: '*';
const { body } = await client.asInternalUser.fieldCaps({ index, fields });
const { body } = await client.asCurrentUser.fieldCaps({ index, fields });
return response.ok({ body });
} catch (e) {
return response.customError(wrapError(e));
Expand Down

0 comments on commit e18cd87

Please sign in to comment.