Is there an easy way to restrict reading access of Draft pages to only those with 'edit' permissions? ~Trent? June 04, 2009, at 01:54 PM

I think something like the following should work in your config.php file:

# require edit authorization for reading Drafts
$pagename = ResolvePageName($pagename); 
if (preg_match('/-Draft$/', $pagename)) $HandleAuth['browse'] = 'edit';

Scott Connard June 05, 2009, at 03:16 AM

Thanks, that worked perfectly. Trent? June 05, 2009, at 10:51 AM

This is a talk page for improving PmWiki.Drafts.