Is there any way to get the explicit role that a user belongs to in my controller? This assumes using ASP.NET Membership and Role Providers. \"IsInRole\" doesn\'t work - I n
You can get the current user's role with Roles.GetRolesForUser().
Roles.GetRolesForUser()
To check if a user belongs to a role here is what I did:
Roles.GetRolesForUser().Contains("Administrator")