Ben Stallings said...
> Has anyone come up with a way to cause all newly created pages to be 
> editable only by their creators, by default? 

    function OnlyCreatorEdit($pagename, &$page, &$new) {
      global $AuthId;
      if (!PageExists($pagename))
        $new['passwdedit'] = "id:$AuthId";
    }

    array_unshift($EditFunctions, 'OnlyCreatorEdit');

-- 
Cheers,
Marc


_______________________________________________
pmwiki-devel mailing list
[email protected]
http://www.pmichaud.com/mailman/listinfo/pmwiki-devel

Reply via email to