Пример #1
0
        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());
        }
Пример #2
0
 public string GetTreeJsonForMenu()
 {
     string[] roles = Roles.GetRolesForUser(HttpContext.Current.User.Identity.Name);
     SitemapHelper.Roles = roles.ToList();
     return(SitemapHelper.GetTreeJsonForMenu());
 }