type BasicPermission = { name : string ; [ key ] : any ; } ; export const isCmsContentPermission = ( permission ) => permission . name . includes ( "cms." ) && ! permission . name . includes ( "cms.endpoint." ) ;