Lava Filters - IsInSecurityRole
Category:Person
Description:Takes the given person object and tests if they are the given security role. Returns a boolean value of either true or false.
Input: "CurrentPerson": {
...
}
Lava: {% assign isInRole = CurrentPerson | IsInSecurityRole:18 %}
{% if isInRole == true %}
{{ CurrentPerson.FullName }} is in that Role.
{% else %}
{{ CurrentPerson.FullName }} is not in that Role.
{% endif %}
Output: Alisha Marble is in that Role.