migrateLegacyCapabilitiesToFeatures
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
Parameters
Parameter | Type | Default | Notes |
---|---|---|---|
model Required | IModel |
Returns
Function defined in common/src/sites/_internal/capabilities/migrateLegacyCapabilitiesToFeatures.ts:21