[Cloud Security] [Bug Fix] Fix for status unprivileged issue (#159538)

This commit is contained in:
Rickyanto Ang 2023-06-13 09:31:12 -07:00 committed by GitHub
parent d5e2355f0d
commit 935ae789da
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -349,7 +349,7 @@ export const defineGetCspStatusRoute = (router: CspRouter): void =>
}
const status = await getCspStatus({
...cspContext,
esClient: cspContext.esClient.asInternalUser,
esClient: cspContext.esClient.asCurrentUser,
});
return response.ok({
body: status,