We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 27376
    • 576 Posts
    I’ve looked around the forums for a while, not quite sure if this has been addressed yet, so...

    Is there a way to detect if a user is logged in as a manager and also what group he/she belongs to?

    My Desired effect is to duplicate the MemberCheck snippet, but currently, MemberCheck only checks for Web User groups. Is it possible to check Manager User Groups as well?
      • 7923
      • 4,213 Posts
      The session has all that info, do a snippet what does print_r($_SESSION); and see what’s in it.. for example $_SESSION[’mgrInternalKey’] has the manager user ID in it if user is logged in..


        "He can have a lollipop any time he wants to. That's what it means to be a programmer."
        • 27376
        • 576 Posts
        Thanks for the info!

        So I’ll have to create my own function to check for Manager Groups? I guess I can just modify the [tt]isMemberOfWebGroup()[/tt] function to use the Manager Session variables...