Permissions on Menu Items

Topics: Customizing Orchard, Writing modules
Jul 22, 2014 at 2:08 PM
I'm adding a new controller action and would like to add a menu item linking to it from our site footer, but it should only appear to users who have the right permission. I see how to do something similar through the Navigation admin page (although it works with Roles rather than Permissions) and I know how to do this for an Admin menu item:
menu.Add(T("User Session Expiration"), "1.1", item => item.Action("Index", "UserSessionExpiration", new { area = "Conductor.Profile" }).Permission(StandardPermissions.SiteOwner).LocalNav());
I'd like to do the same thing for a normal menu item either in a recipe or in a migration step. Is there any way to do this?