The vco:IfMemberOf component includes a block of content if the current user is a member of a given LDAP group.
If you pass an array of LDAP groups to this component, the Web view displays the content if the current user is a member of at least one of the groups in the list.
An attribute of the LdapGroup type, or an array of LdapGroup objects. |
The following example shows how to use the vco:IfMemberOf component to add information about a user's LDAP group membership to a Web view.
<span jwcid="@vco:IfMemberOf" attribute="ognl:'adminGroup'"> You are a member of the group that the adminGroup attribute defines. </span> <span jwcid="@Else"> You are not a member of the group that the adminGroup attribute defines. </span>