Protect Section

Protect sections based on roles.

The Protect-UDSection cmdlet hides it's content if a user does not have the specified roles.

Protect-UDSection -Role @("Administrator") -Content {
   New-UDTypography -Text 'Only Administrators see this'
}

Last updated

Copyright 2024 Ironman Software