Had a report come in that has_role tag is not consistently correct. Tested in 7.5.1:
{exp:member:has_role role_id="6" member_id="2"}
<p>Has role 6</p>
{if no_results}
<p>Not an editor</p>
{/if}
{/exp:member:has_role}
What I found was it worked UNLESS the primary role was also checked in the additional roles.
Editor is role id 6.
Output: Not an editor
Output: Has role 6
There might be more going on in there, but I can replicate the above.
Had a report come in that has_role tag is not consistently correct. Tested in 7.5.1:
What I found was it worked UNLESS the primary role was also checked in the additional roles.
Editor is role id 6.
Output: Not an editor
Output: Has role 6
There might be more going on in there, but I can replicate the above.