AndrewSimm
Well-known member
I noticed that there appears to be two ways to use permissions in templates.
and
Obviously one of these is for editing profile and the other is for custom title but why is the syntax so different?
Code:
<xf:if is="$xf.visitor.canEditProfile()">
and
Code:
<xf:if is="{{ $xf.visitor.hasPermission('general', 'editCustomTitle') }}">
Obviously one of these is for editing profile and the other is for custom title but why is the syntax so different?