Navigation permissions (MenuItem Authorization)

Topics: Customizing Orchard, Writing modules
Mar 18, 2011 at 10:38 AM

As a developer it seems to be possible to authorize the navigation, but not in the administration panel?

As an administrator i want to authorizate a menu item the same way as i can authorize a layer, using the ruby dlr scripting engine :)
So that i can make a menu item visible to users with a specific role.

For now i don't care that a administrator can't add "Reduce"

I like the layer scripting way, but it doesn't match the NavigationItemBuilder.Permission way..

Are there any ideas about the implimentation?
Is this being added in the near future?

Mar 18, 2011 at 8:21 PM

It's not planned but would be an interesting module. I'm wondering whether a generic content item authorization system could cover that, as menu items are content items.

Mar 19, 2011 at 5:26 PM

I think it's a important one, especially for a larger CMS with dynamic content. A generic authorization system for content items sounds nice, but it will be a complex feature. I believe that this should be in an Orchard.Authorization module, made by the team using the scripting engine :) 

For now i'll have to register the menu item in a mainmenu class using the NavigationItemBuilder.Permission way.