[pmwiki-users] Limiting New Page Creation

Dave Brockman daveb at oz.net
Sun Apr 1 04:37:04 CDT 2007


Patrick R. Michaud wrote:
> On Wed, Dec 13, 2006 at 11:41:21AM -0800, Seth Cherney wrote:
> 
>>   I would like to disable new page creation from within pmwiki, or restrict
>>   to admin only (we will be populating with content manually in general). 
>>   is there a quick way to do this?  Thanks!
> 
> 
> You want to continue to allow existing pages to be edited, but 
> prevent people from creating new pages?  Perhaps something like:
> 
>     $pagename = ResolvePageName($pagename);
>     if (!PageExists($pagename)) $HandleAuth['edit'] = 'admin';
> 
> This says that if a page doesn't exist, then admin privileges
> are required to edit it.
> 
> Let me know if this works,
> 
> Pm

Works for me! Thanks!

Dave




More information about the pmwiki-users mailing list