Chris Davies <[EMAIL PROTECTED]> wrote:

> Auth is set to required.
> 
> I opened a separate browser, went to that page, put in admin/password,
> still says

SG0 admin?
 
> adminObject does not exist

if You are logged in , replace person to $person = mgd_get_person($midgard->user);


> however, if a user is required to be logged in to post an article, how
> does one allow anonymous users to post?

anonymous can only read data
to write ones , You must make some authentication in background 

>  Secondly, that page uses HTTP
> Auth requests, which doesn't allow one to log out of the site with most
> browsers.  Is there a cookie/state login session module available, or is
> HTTP Auth the only way to do it?

If You use page which is set to auth , the only way (AFAIK) to log out 
is close browser
 
> > For most midgard's objects You may call 
> > $object = mgd_get_xxx(); 
> > which creates objects with empty properties, which may be defined as You need.
> 
> http://midgard-project.org/manual/en/function.get-article.php
> 
> this page claims that the return is FALSE and doesn't list the parameter as void|int 
> id or the parameter as [int id]

This page describe how to get specific article, when is called with parameter as void 
it calls
for object constructor which returns object with empty properties. 
For example:
http://midgard-project.org/manual/en/method.object-create.php


Your problem looks strange if You are logged as SG0 root admin.
Returned error "Object does not exist" may be casued by:
- defined topic points to non existance topic
- You try to create article with SGX admin while topic is in SG0 or SGY.

If user You are logged in belongs to the same SG as topic , but he is not 
member of topic's group owner You should have error like "Access Denied".


Piotras

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

Reply via email to