I want to display some content only if a user from a certain group (wholesalers) is currently logged-in. The following syntax seems to work - but is there something more shorthand than the nested conditionals I'm using?
{% if currentUser %}
{% if currentUser.isInGroup('wholesalers') %}
Do something here...
{% endif %}
{% endif %}
admin/settings/users/groups/4the number is the group ID. – Luke Pearce Sep 01 '16 at 15:43