XF 2.0 How do you check permissions in a template?

Jaxel

Well-known member
#1
I'm trying to display a navigation item only when a user has specific permissions... I've tried the following, but getting errors:
Code:
{{ $visitor->hasPermission('EWRrio', 'submitChannel') }}
 
Top