This project is read-only.

Administrator role gets all main menu items

Topics: Administration, Customizing Orchard, Writing modules
Jul 12, 2011 at 10:23 AM

I don't want admins to get all the main menu items on the front end of my site - is there a way to stop this happening? I assign permissions to other roles but Admins seem to get them automatically which makes no sense on the site.



Jul 13, 2011 at 9:03 PM

The menu does not filter on roles at this time. You may want to try Advanced Menu (available on the gallery), which I think handles that.

Jul 13, 2011 at 11:36 PM

I'm adding the menu items via my module using a MainMenu.cs file. This uses the permissions I have also defined (in Permissions.cs) so in effect it is using roles as the menu items do not appear in the menu unless the current user has permission for them.