public string GetTreeJsonForMenu() { string[] roles = Roles.GetRolesForUser(HttpContext.Current.User.Identity.Name); var roleList = roles.ToList(); //if (roleList.Contains("Administrators")) //{ // roleList.Remove("Administrators"); //} //roleList.Add("Users"); SitemapHelper.Roles = roleList; return(SitemapHelper.GetTreeJsonForMenu()); }
public string GetTreeJsonForMenu() { string[] roles = Roles.GetRolesForUser(HttpContext.Current.User.Identity.Name); SitemapHelper.Roles = roles.ToList(); return(SitemapHelper.GetTreeJsonForMenu()); }