Thus spake Emiliano ([EMAIL PROTECTED]):
> 
> > However when I log in, I don't get the little paragraph telling me who I'm
> > logged in as, with the option to login again as a different UID.
> > 
> > This was a clean 1.4-b3 install - not an upgrade from a previous version.
> 
> But all else works? Call mgd_has_sitegroups() in a page and see what it
> returns. Also, check in the database to see if page 1 has code like
> 
> <? if(mgd_has_sitegroups()) { ?>
> <h2>Login informations</h2>
> <? $person = mgd_get_person($midgard->user);
> $sitegroup=$midgard->sitegroup ? mgd_get_sitegroup($midgard->sitegroup) : 0;
> $sgname=$sitegroup ? $sitegroup->name : \"SG0\";
> $status=$midgard->root ? \"root\" : ($midgard->admin ? \"administrator\" :
> \"user\"); ?>
> <p>You\'re currently logged in with user <b>&(person.name);</b>.<br>
> Your current privileges level in sitegroup <b>&(sgname);</b> is
> <b>&(status);</b>.

Yes, this code is definitely there in the admin site.

This code in a test page:

        <?
        if (mgd_has_sitegroups()) {
                print "We have sitegroups";
        } else {
                print "We don't have sitegroups";
        }
        ?>

prints "We don't have sitegroups" :-(

Not sure if this helps, but when the above page is accessed, this is the
output (LogLevel Debug) in Apache's error log:

[debug] mod_midgard.c(624): [client xxx.xx.xxx.xx] Midgard: host record for 
beta.testdomain.com:80 found (#3)
[debug] mod_midgard.c(490): [client xxx.xx.xxx.xx] walking pages /
[debug] mod_midgard.c(648): [client xxx.xx.xxx.xx] Midgard: page record for / found 
(#41)
[debug] mod_midgard.c(654): [client xxx.xx.xxx.xx] Midgard: using style #5 (6 elements)
[info] [client xxx.xx.xxx.xx] Midgard: Template not found code-compat
[info] [client xxx.xx.xxx.xx] Midgard: Template not found code-global
[info] [client xxx.xx.xxx.xx] Midgard: Template not found code-init

Regards,


Nick.

-- 
 From a Sun Microsystems bug report (#4102680):
  "Workaround: don't pound on the mouse like a wild monkey."


--
This is The Midgard Project's mailing list. For more information,
please visit the project's web site at http://www.midgard-project.org

To unsubscribe the list, send an empty email message to address
[EMAIL PROTECTED]

Reply via email to