@@ -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