changing navagation

Permalink 1 user found helpful
Hello!
I'm looking to create a different menu depending on which group the user belongs to for example if there are 3 groups well depending on the group the user belongs to they'd see a different menu. is this possible?

thank you!!!!

 
ScottSandbakken replied on at Permalink Best Answer Reply
ScottSandbakken
$userGroup = ""; // Set this to the name of the user group
$u = new User();
$group = Group::getByName($userGroup);
if ($u->inGroup($userGroup)) 
   // Menu for this group
}
Adreco replied on at Permalink Reply
Adreco
I haven't checked but I'm pretty sure... won't the visible menu change by group permissions?