Skip to content

Commit 8576293

Browse files
[ML] Fixing field caps wrapper endpoint (#77546) (#77583)
1 parent ab9c23e commit 8576293

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

x-pack/plugins/ml/server/routes/indices.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export function indicesRoutes({ router, mlLicense }: RouteInitialization) {
4040
requestFields !== undefined && Array.isArray(requestFields)
4141
? requestFields.join(',')
4242
: '*';
43-
const { body } = await client.asInternalUser.fieldCaps({ index, fields });
43+
const { body } = await client.asCurrentUser.fieldCaps({ index, fields });
4444
return response.ok({ body });
4545
} catch (e) {
4646
return response.customError(wrapError(e));

0 commit comments

Comments
 (0)