We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
  • It would be nice if the getWebUserInfo($uid) API function contained the usertype in its return array.
      Studying MODX in the desert - http://sottwell.com
      Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
      Join the Slack Community - http://modx.org
      • 32963
      • 1,732 Posts
      Quote from: sottwell at Jun 23, 2005, 12:29 AM

      It would be nice if the getWebUserInfo($uid) API function contained the usertype in its return array.

      hmmm,

      I think I left that out because getWebUserInfo() only returns the record of a webuser
        xWisdom
        www.xwisdomhtml.com
        The fear of the Lord is the beginning of wisdom:
        MODx Co-Founder - Create and do more with less.
      • Very true. But I was printing out the results of a call to getwebUserInfo, and I was logged in as a manager user, and got the info for a web user with the same ID. So I needed to run an extra "if" clause, checking to make sure my user was a web user. It would have been much simpler if I had been able to use a field in the array. For the same reason, unless I coded my "if" just so, I couldn’t use the fact that getwebUserInfo returned anything to tell me what kind of user I was.
          Studying MODX in the desert - http://sottwell.com
          Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
          Join the Slack Community - http://modx.org