We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 25663 MODX Staff
    • 12,272 Posts
    I think I’ve found a possible webuser bug:

    When using member check with registered users, it outputs the chunk even when not logged in... . For example:

    http://calyxclub.com/

    The Members-only calls follow:
    [!MemberCheck2? &groups=`Registered Users` &chunk=`memberNav`!]
    [!MemberCheck2? &groups=`Site Admins` &chunk=`officerNav`!]


    officerNav is behaving as expected. However when no one is logged in, the memberNav is still rendering! Both of the chunks are simply an H2 followed by a static UL, so no special stuff going on there. Reversing the order of the calls doesn’t matter either, the chunk always renders.

    What I’ve noticed is that this actually only happens if in fact you’re a member and have logged in successfully once, and only for the Registered Users account (one created after the initial "site admin" Webuser Group in the list). If you change the User Group name, and the call to match and logout. The menu disappears as expected. If you login with the new usergroup, then logout. It’s stuck again as always rendering.

    Methinks a new bug has been found!
      Ryan Thrash, MODX Co-Founder
      Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
      • 25663 MODX Staff
      • 12,272 Posts
      Now the plot thickens.

      I create another user group (the third one) called "Test Users". I change the call to:
      [!MemberCheck2? &groups=`Test Users` &chunk=`memberNav`!]


      And everything works as expected. (including with additional user groups too, fyi... only hanging up on the second one in multiple browsers.)

        Ryan Thrash, MODX Co-Founder
        Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me