[pmwiki-users] commenting to private pages

Hans design5 at softflow.co.uk
Tue Dec 19 16:01:23 CST 2006


Tuesday, December 19, 2006, 9:50:52 PM, Patrick wrote:

> Oh, I forgot.  RetrieveAuthPage allows a $level value of 'ALWAYS',
> which means that the page is returned regardless of any
> authorization settings in effect:

>     $page = RetrieveAuthPage($targetname, 'ALWAYS', true);

> That should work just about the same as ReadPage() for what you're
> wanting to do.  Phrased another way, when Fox has decided that it's
> okay to post to a page regardless of permissions, it can just pass
> 'ALWAYS' to the RetrieveAuthPage function instead of 'read' or 'edit'.

Great. Thank you! ALWAYS in CAPITALS!

So Fox can already post to read protected pages, just by setting
$FoxAuth = 'ALWAYS';


Hans





More information about the pmwiki-users mailing list