Hello All,

I've just put the following code into a snippet and then included it
into an Aegir add-on page. Then I logged in as another user of another
sitegroup different from admin/SG0 (myuser/SGTTT) and, still, when I execute the
snippet below...

 $mgd=mgd_get_midgard();
 $p=mgd_get_person($mgd->user);
 $sg=$p->getsitegroup();
 print "USERNAME: $p->username SITEGROUP: $sg<BR>";

...it just says: "USERNAME: admin SITEGROUP: 0"

How do I get the correct user and sitegroup of the currently
authenticated user? Am I missing something at this point?

-- 
See you,
Andrey.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to