XF 2.2 Navigation Secondary User Groups

jerrydoe

Member
Hello,

I need to show a navigation tab to only certain groups. In the navigation area I am doing this:
$xf.visitor.isMemberOf(1) <where group one is the group to show it to. This works.

BUT

The problem is that all the users are in this group and I am using the "secondary user groups" check boxes to determine user groups. How can I define who sees the menu tab based upon second user groups?

Thanks2022-02-25_11-48-55.webp
 
@Brogan, by default all users are in the "user" group, this group ID number: 2
I want to add a link to the navigation tab and group ID number 6,7,8,9 should not see this link.
But since the primary user group of the groups with ID number 6,7,8,9 is 2, they also see the link.
What should I do so that secondary user group 6,7,8,9 can't see the link?
Please help me.

Thanks,
 
Back
Top Bottom