"John P . Looney" wrote:
> It's 0. Just did;
>
> $midgard = mgd_get_midgard();
> $user_id=$midgard->user;
> $admin_id=$midgard->admin;
$midgard->admin is not an ID as such, but a boolean. Not that it matters
in the
way you use it, just an observation.
> And, at the bottom:
>
> if($midgard->admin) {
> echo "<A HREF=\"/asgard/page/edit/$midgard->page\">Edit this
> page</A>";
> } else {
> $person = mgd_get_person( $user_id );
> echo "$person->firstname ($user_id), you are not recognised as an admin
>($admin_id) for this page";
> }
>
> And it's printing:
> John (2), you are not recognised as an admin (0) for this page
OK, so you're being logged in but not recognized as an admin. Are you
sure the is user actually is admin?
Member of the admin group, user, member record and admin group record
all in the same sitegroup? If
you're using SGs, that is.
Emile
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]