It would be nice if the getWebUserInfo($uid) API function contained the usertype in its return array.
-
- 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
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.