applyPrivPropValuesToTemplate

Function

Updates template based upon new privPropValues property In the templates config hash. This allows us to conditionally change out parts of the template

Parameters

Parameter Type Default Notes
user Required IUser
template Required IGroupTemplate

Returns

Returns updated template

Property Type Notes
config {
availableIn:
HubProduct[]
descriptionI18n:
string
groupType:
string
privPropValues:
IPrivPropValues[]
propertyName:
string
requiredPrivs:
string[]
snippetI18n:
string
titleI18n:
string
type:
HubTeamType
}

Function defined in teams/src/utils/apply-priv-prop-values-to-template.ts:13