+1-888-365-2779
Try Now
More in this section

Forums / Bugs & Issues / Menu Items Missing for Administrators

Menu Items Missing for Administrators

2 posts, 0 answered
  1. BoaMike
    BoaMike avatar
    51 posts
    Registered:
    25 Sep 2009
    11 Aug 2014
    Link to this post

    I have a recently upgraded (4.4 -> 7.0) site, everything was working fine, but now, when I log into the backend as a user with administrator privileges the only thing that shows is "Dashboard".  We use SSO via Ldap, and every user with the administrator role only sees "Dashboard".  Other non-administrator users are unaffected.  If I disable SSO via Ldap and login as an administrator in the Default Provider, I STILL only see "Dashboard".   Other users in the Default provider are also unaffected.  

    Has anyone seen this behavior before?  

  2. Vassil Vassilev
     Vassil Vassilev avatar
    308 posts
    Registered:
    21 Jan 2015
    14 Aug 2014
    Link to this post
    Hello Mike,

    Yes, this issue is indeed strange, a possible cause could be if the administrators role id in your SecurityConfig.config match another role (e.g. BackendUsers) in your database - you can find this in table [sf_roles]

    You can try create an administrator user using the following script:

    var userManager = UserManager.GetManager("Default");
    System.Web.Security.MembershipCreateStatus status;
    userManager.Provider.SuppressSecurityChecks = true;
    var user = userManager.CreateUser("admin", "password", "admin@admin.com", "Question", "Answer", true, null, out status);
    user.FirstName = "FirstName";
    user.LastName = "LastName";
    userManager.SaveChanges();
     
    RoleManager roleManager = RoleManager.GetManager("AppRoles");
    roleManager.Provider.SuppressSecurityChecks = true;
    var role = roleManager.GetRole("Administrators");
    roleManager.AddUserToRole(user, role);
    roleManager.SaveChanges();

    and see if it logs successfully. If this user succeed to log as admin, then you can re-assign the rest of your admin users to "Administrators" role.

    Hope this helps.

    Regards,
    Vassil Vassilev
    Telerik
     
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
     
2 posts, 0 answered