Skip to content

Commit a06bc2b

Browse files
committed
revert
1 parent c644a99 commit a06bc2b

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

x-pack/platform/plugins/shared/alerting/server/maintenance_window_client_factory.ts

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -41,17 +41,11 @@ export class MaintenanceWindowClientFactory {
4141
this.uiSettings = options.uiSettings;
4242
}
4343

44-
private createMaintenanceWindowClient(
45-
request: KibanaRequest,
46-
withAuth: boolean,
47-
excludedExtensions?: ['spaces']
48-
) {
44+
private createMaintenanceWindowClient(request: KibanaRequest, withAuth: boolean) {
4945
const { securityService } = this;
5046
const savedObjectsClient = this.savedObjectsService.getScopedClient(request, {
5147
includedHiddenTypes: [MAINTENANCE_WINDOW_SAVED_OBJECT_TYPE],
52-
...(withAuth
53-
? {}
54-
: { excludedExtensions: [...(excludedExtensions ?? []), SECURITY_EXTENSION_ID] }),
48+
...(withAuth ? {} : { excludedExtensions: [SECURITY_EXTENSION_ID] }),
5549
});
5650

5751
const uiSettingClient = this.uiSettings.asScopedToClient(savedObjectsClient);
@@ -71,7 +65,7 @@ export class MaintenanceWindowClientFactory {
7165
return this.createMaintenanceWindowClient(request, true);
7266
}
7367

74-
public create(request: KibanaRequest, excludedExtension?: ['spaces']) {
75-
return this.createMaintenanceWindowClient(request, false, excludedExtension);
68+
public create(request: KibanaRequest) {
69+
return this.createMaintenanceWindowClient(request, false);
7670
}
7771
}

0 commit comments

Comments
 (0)