Approaches to wrapping access to functionality in .NET MVC?

Posted by Kevin on Stack Overflow See other posts from Stack Overflow or by Kevin
Published on 2010-03-13T05:49:18Z Indexed on 2010/03/13 5:55 UTC
Read the original article Hit count: 276

Filed under:
|

What are some different solutions to wrapping access to functionality within a .NET MVC application?

For example, I have six tabs that represent different areas of the application and within area 1, there is the ability to add, edit, upload, whatever.

I need a central way to say:

  1. Build some dictionary of what the user can do
  2. Wrap tabs, buttons, links, etc, validate the user can access this piece of functionality and show/hide appropriately.

I know I can restrict access to actions via action filters and roles, but what about from the UI?

Any help would be appreciated. I am sure I am not the only one who has needed to do this, thanks!

© Stack Overflow or respective owner

Related posts about asp.net-mvc

Related posts about privileges