You’re basically already using the correct condition so I can only assume that there’s a typo in your group ID or permission ID or you don’t have the permission as you expect.
I am trying to also implement a permission set on the public nav but mostly to prevent guests from accessing some gallery features.
I have tried this but it prevented it for all, most likely the group id and the way I've called it.
Is anyone able to kindly help with what's needed to get this working correctly please?
Code:
$xf.visitor.isMemberOf == 1
Saying that, this is probably the wrong code anyway.