• 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?

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') }}