This project is read-only.

Hide admin menu items when no access

Topics: Core, Customizing Orchard, Writing modules
Aug 17, 2012 at 8:05 AM

Is it possible to hide admin menu items if people cannot access them?

I tried adding '.Permission()' to all items but they still show.

Aug 17, 2012 at 8:56 AM

I'm rather sure it worked before (as it would hide items I dont have access too) so the Q remains: Did I break it or was it broken in Orchard 1.5? :)

Anyone can give me a pointer on where in the code this permission check is/should be handled so I can check?

Aug 20, 2012 at 4:51 PM

Any feedback on this please? I _know_ in older versions it would hide admin menu items if the user didn't have the correct permission, but now all items are shown :/

Aug 21, 2012 at 10:13 AM

Anyone? :/

Aug 22, 2012 at 4:09 AM

I'm also interested.

Aug 22, 2012 at 5:23 AM

If that's a regression, please file a bug.

Aug 22, 2012 at 9:25 AM

See also:

Aug 24, 2012 at 7:32 AM

Thanks for that jazpur :)