[pmwiki-users] commenting to private pages

Hans design5 at softflow.co.uk
Tue Dec 19 15:25:55 CST 2006


Tuesday, December 19, 2006, 8:53:17 PM, Patrick wrote:

> Simply use ReadPage() instead of RetrieveAuthPage().

You think the following code is sufficient as a switch between the
case where it may be allowed to post to some private page(s), and the
case where an admin can enforce a higher auth level for posting, by
setting var $FoxAuth to 'edit' or higher?

    if($FoxAuth=='read') $page = ReadPage($targetname);
    else $page = RetrieveAuthPage($targetname, $FoxAuth, true);
    

Hans





More information about the pmwiki-users mailing list