Skip to content

Commit

Permalink
fix alerting FTR test
Browse files Browse the repository at this point in the history
  • Loading branch information
pgayvallet committed Jan 22, 2020
1 parent 961fec1 commit 8c213a0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion x-pack/legacy/plugins/alerting/server/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,8 @@ export class Plugin {
const request = KibanaRequest.from(rawRequest);
return {
callCluster: (...args) => adminClient!.asScoped(request).callAsCurrentUser(...args),
savedObjectsClient: core.savedObjects.getScopedSavedObjectsClient(request),
// rawRequest is actually a fake request, converting it to KibanaRequest causes issue in SO access
savedObjectsClient: core.savedObjects.getScopedSavedObjectsClient(rawRequest as any),
};
},
spaceIdToNamespace,
Expand Down

0 comments on commit 8c213a0

Please sign in to comment.