migrateLegacyCapabilitiesToFeatures

Function

Site capabilities are currently saved as an array on the site.data.values.capabilities. We want to migragte these legacy capabilities over to features in the new permissions system and expose them on the entity

This function is called within fetchSite to ensure all sites have features that are kept up-to-date with the legacy capabilities array

Site capabilities are currently saved as an array on the site.data.values.capabilities. We want to migragte these legacy capabilities over to features in the new permissions system and expose them on the entity

This function is called within fetchSite to ensure all sites have features that are kept up-to-date with the legacy capabilities array

  • migrateLegacyCapabilitiesToFeatures(model: IModel) : IModel

Parameters

Parameter Type Default Notes
model Required IModel

Returns

Property Type Notes
item IItem
data Optional [key: string]: any
resources Optional [key: string]: any

Function defined in common/src/sites/_internal/capabilities/migrateLegacyCapabilitiesToFeatures.ts:21