Andrey Subbotin <[EMAIL PROTECTED]> wrote:
> 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();
this function is called in midgard-root file, so there is no need to call it second
time
unless You call for mgd_auth_midgard()
Try:
<?
$first_person = mgd_get_person($midgard->user);
print_r($first_person);
mgd_auth_midgard("youruser+SG","pass",0);
$newuser = mgd_get_midgard();
$second_person = mgd_get_person($newuser->user);
print_r($second_person);
?>
Piotras
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]