I want to be able to
If anyone need this information, in case your user has many roles but you're looking for one, you could do this:(i thought id share)
@if (Request.IsAuthenticated)
{
string[] roles = Roles.GetRolesForUser();
foreach (string role in roles)
{
if (role.Contains("admin"))
{
- @Html.ActionLink("Administration", "Admin", "Movies")
break;
}
}
}