[pmwiki-devel] new pages editable only by author?

marc gmane at auxbuss.com
Wed Jan 24 15:11:28 CST 2007


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




More information about the pmwiki-devel mailing list