• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 2.0 How do you check permissions in a template?


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