Andrey Subbotin wrote: Piotras already answered this question, but I'll give a little background.
> $mgd=mgd_get_midgard(); > $p=mgd_get_person($mgd->user); > $sg=$p->getsitegroup(); Note: $p->getsitegroup is the sitegroup the user belongs to, *not* the sitegroup that 'current' user is logged in to. > print "USERNAME: $p->username SITEGROUP: $sg<BR>"; > > ...it just says: "USERNAME: admin SITEGROUP: 0" So this is correct if you are logged in as admin. > How do I get the correct user and sitegroup of the currently > authenticated user? Am I missing something at this point? $midgard->user and $midgard->sitegroup Emile --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
