Possible Duplicate:
ASP.NET MVC3 Role and Permission Management -> With Runtime Permission Assignment
Say I have an ActionResult Members
in a controller that should only allow members to access it. Normally I would just put a [Authorize(Roles = "Members")]
attribute on the action to only allow authenticated users in the Members
role to access it.
Is there a way I can allow admins (or whatever) to change it in the future to lets say [Authorize(Roles = "Members, PotentialMembers ")]
(this would allow users in the roles Members
and PotentialMembers
to access this action?
Thanks