@@ -90,9 +90,7 @@ async function boot(
9090 } ,
9191 } ;
9292 const plugin = new SecurityPlugin ( { fallbackPermissionSet : 'member_default' } ) ;
93- // eslint-disable-next-line @typescript-eslint/no-explicit-any
9493 await plugin . init ( ctx as any ) ;
95- // eslint-disable-next-line @typescript-eslint/no-explicit-any
9694 await plugin . start ( ctx as any ) ;
9795 return { plugin, logger } ;
9896}
@@ -103,7 +101,6 @@ describe('[ADR-0131 D7] plugin-security reads no platformGlobalObjects — the s
103101 { sys_widget_registry : walledSchema ( 'sys_widget_registry' ) } ,
104102 { entitlement : { platformGlobalObjects : [ 'sys_widget_registry' ] } } ,
105103 ) ;
106- // eslint-disable-next-line @typescript-eslint/no-explicit-any
107104 expect ( await ( plugin as any ) . getReadFilter ( 'sys_widget_registry' , MEMBER_CTX ) ) . toEqual ( {
108105 organization_id : 'org-1' ,
109106 } ) ;
@@ -115,7 +112,6 @@ describe('[ADR-0131 D7] plugin-security reads no platformGlobalObjects — the s
115112 { entitlement : { platformGlobalObjects : [ 'sys_widget_registry' ] } , tenancy : { posture : 'group' } } ,
116113 ) ;
117114 const groupCtx = { ...MEMBER_CTX , accessible_org_ids : [ 'org-1' , 'org-2' ] } ;
118- // eslint-disable-next-line @typescript-eslint/no-explicit-any
119115 expect ( await ( plugin as any ) . getReadFilter ( 'sys_widget_registry' , groupCtx ) ) . toEqual ( {
120116 organization_id : { $in : [ 'org-1' , 'org-2' ] } ,
121117 } ) ;
@@ -126,7 +122,6 @@ describe('[ADR-0131 D7] plugin-security reads no platformGlobalObjects — the s
126122 { sys_widget_registry : walledSchema ( 'sys_widget_registry' ) } ,
127123 { entitlement : { platformGlobalObjects : [ 'sys_widget_registry' ] } } ,
128124 ) ;
129- // eslint-disable-next-line @typescript-eslint/no-explicit-any
130125 const walled = await ( plugin as any ) . computeWriteTenantCheckFilter (
131126 [ PLAIN_MEMBER ] , 'sys_widget_registry' , 'insert' , NO_ORG_CTX ,
132127 ) ;
@@ -138,14 +133,11 @@ describe('[ADR-0131 D7] plugin-security reads no platformGlobalObjects — the s
138133 sys_widget_registry : plannedSchema ( 'sys_widget_registry' ) ,
139134 crm_task : walledSchema ( 'crm_task' ) ,
140135 } ) ;
141- // eslint-disable-next-line @typescript-eslint/no-explicit-any
142136 expect ( await ( plugin as any ) . getReadFilter ( 'sys_widget_registry' , MEMBER_CTX ) ) . toBeUndefined ( ) ;
143- // eslint-disable-next-line @typescript-eslint/no-explicit-any
144137 expect ( await ( plugin as any ) . computeWriteTenantCheckFilter (
145138 [ PLAIN_MEMBER ] , 'sys_widget_registry' , 'insert' , NO_ORG_CTX ,
146139 ) ) . toBeNull ( ) ;
147140 // CONTROL — a sibling on the same deployment walls as today.
148- // eslint-disable-next-line @typescript-eslint/no-explicit-any
149141 expect ( await ( plugin as any ) . getReadFilter ( 'crm_task' , MEMBER_CTX ) ) . toEqual ( { organization_id : 'org-1' } ) ;
150142 } ) ;
151143
@@ -154,9 +146,7 @@ describe('[ADR-0131 D7] plugin-security reads no platformGlobalObjects — the s
154146 { sys_widget_registry : walledSchema ( 'sys_widget_registry' ) , crm_task : walledSchema ( 'crm_task' ) } ,
155147 { entitlement : { platformGlobalObjects : [ 'sys_widget_registry' ] } , tenancy : { posture : 'single' } } ,
156148 ) ;
157- // eslint-disable-next-line @typescript-eslint/no-explicit-any
158149 expect ( await ( plugin as any ) . getReadFilter ( 'sys_widget_registry' , MEMBER_CTX ) ) . toBeUndefined ( ) ;
159- // eslint-disable-next-line @typescript-eslint/no-explicit-any
160150 expect ( await ( plugin as any ) . getReadFilter ( 'crm_task' , MEMBER_CTX ) ) . toBeUndefined ( ) ;
161151 } ) ;
162152} ) ;
@@ -167,7 +157,6 @@ describe('[#12699] refusals: this plugin warns only for the key it reads', () =>
167157 { sys_widget_registry : walledSchema ( 'sys_widget_registry' ) } ,
168158 { entitlement : { platformGlobalObjects : 'sys_widget_registry' } } ,
169159 ) ;
170- // eslint-disable-next-line @typescript-eslint/no-explicit-any
171160 await ( plugin as any ) . getReadFilter ( 'sys_widget_registry' , MEMBER_CTX ) ;
172161 const warned = logger . warn . mock . calls . map ( ( c ) => String ( c [ 0 ] ) ) ;
173162 expect ( warned . filter ( ( m ) => m . includes ( 'org-scoping entitlement key' ) ) ) . toEqual ( [ ] ) ;
0 commit comments