We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ab9c23e commit 8576293Copy full SHA for 8576293
1 file changed
x-pack/plugins/ml/server/routes/indices.ts
@@ -40,7 +40,7 @@ export function indicesRoutes({ router, mlLicense }: RouteInitialization) {
40
requestFields !== undefined && Array.isArray(requestFields)
41
? requestFields.join(',')
42
: '*';
43
- const { body } = await client.asInternalUser.fieldCaps({ index, fields });
+ const { body } = await client.asCurrentUser.fieldCaps({ index, fields });
44
return response.ok({ body });
45
} catch (e) {
46
return response.customError(wrapError(e));
0 commit comments