I have used the following if check to hide/show content based on webrole in the past, and it has worked without issue, but recently I have found that it ignore the if and just shows the content...anyone had any issues with it?
Is there another statement besides "contains" to match perfectly against This Role Name?
{% if user.roles contains 'This Role Name' %}
<div class="example">SHOW THIS HTML CONTENT FOR This Role Name web roles</div>
{% endif %}
*This post is locked for comments
I have the same question (0)