1

If an action has been decorated with [Authorize(Roles="Administrators")] is there a way to not display the link for the currently logged in user who is not in the declared role?

It seems to me that baking a lot of if statements into the view to give this kind of "selective disclosure" is contrary to the MVC way, but I'm not sure what the alternative is?

Ralph Shillington
  • 20,718
  • 23
  • 91
  • 154
  • possible duplicate of ["Security aware" action link?](http://stackoverflow.com/questions/2721869/security-aware-action-link) – John Farrell Jun 14 '10 at 14:18

1 Answers1

1

This was in the related questions for your question title:

"Security aware" action link?

Community
  • 1
  • 1
John Farrell
  • 24,673
  • 10
  • 77
  • 110