We want to allow some menu items to display only for specific group members, but I'm unsure how to call the current users' group membership in the code.
Seems like the AbleContext.Current.User should contain the GroupId, but efforts to call this continually fail.
The Admin link in the navigation simply calls the visibility based on the following code in StoreHeader.ascx:
Code: Select all
AdminLink.Visible = AbleContext.Current.User.IsAdmin;
Code: Select all
GroupLink.Visible = AbleContext.Current.User.GroupId = 14;
Thanks!