In a dtml document, if i use
<dtml-var expr="AUTHENTICATED_USER.hasRole('xyz')">
i received a 1 for any value of xyz
if i use the syntax
<dtml-var expr="AUTHENTICATED_USER.has_role('xyz')">
i will receive 0 if i'm not a member of the group
and 1 if i am a member, which is the correct behavior
Which syntax is the correct one?
Any explanation why the first syntax is not correct?
Thanks