Hi,

> >    mgd_auth_midgard("author","x",0);
> 
> What's the value of mgd_errstr() after this when the
> mgd_get_topic_by_name fails?
> 
> >    $mgd=mgd_get_midgard();
> 
> and the value of $mgd->sitegroup here?

We are getting closer... In case of the error the outputs are:

Errstr after mgd_auth_mgd(): Object does not exist
mgd->sitegroup: 0

(In the $mgd there are two distinct attrs between a good and a bad
query:

[user] => 0, [sitegroup] => 0   OR   [user] => 9, [sitegroup] => 1
)

This error means 'authentication failure'?

Ok, it seems that I have the solution: I have changed the auth row to:

mgd_auth_midgard("author+informed","x",0);
                        ^^^^^^^^^
And now it seems that it works correctly. Based on what you have
answered to pp, I consider it as a bug (the page belongs to
SG1=='informed'). :-p  (At least, it gives me that better feeling that
not only I have to be blamed for this quite long thread, and the working
hours beneath it. :)

Thanks for the solution:
Circum


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

Reply via email to