Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
apply @jportner suggestions

Co-authored-by: Joe Portner <5295965+jportner@users.noreply.github.com>
  • Loading branch information
mshustov and jportner authored Jul 1, 2020
1 parent c6e0e8c commit 40de1d0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/core/server/elasticsearch/legacy/cluster_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -206,11 +206,12 @@ export class LegacyClusterClient implements ILegacyClusterClient {
this.callAsInternalUser,
this.callAsCurrentUser,
filterHeaders(this.getHeaders(request), this.config.requestHeadersWhitelist),
this.getScopedScopedAuditor(request)
this.getScopedAuditor(request)
);
}

private getScopedScopedAuditor(request?: ScopeableRequest) {
private getScopedAuditor(request?: ScopeableRequest) {
// TODO: support alternative credential owners from outside of Request context in #39430
if (request && isRealRequest(request)) {
const kibanaRequest =
request instanceof KibanaRequest ? request : KibanaRequest.from(request);
Expand Down

0 comments on commit 40de1d0

Please sign in to comment.