[pmwiki-users] Prevent page deletion by user?

Petko Yotov 5ko at free.fr
Tue Apr 3 06:36:12 CDT 2007


On Tuesday 03 April 2007 13:01, Dave Brockman wrote:
> Is there a simple way to prevent a user from deleting any page in a
> group? My PmWiki deals with the episodes of a TV series. I have created
> blank pages for each episode in four groups. Users have edit access to
> these pages with a password. I know a user could simply delete the page
> text, but I would like to safeguard the page. Only admin can create
> pages (groups, too). Any user could restore the text (I think). Thanks
> in advance.

You can change the keyword that deletes a page and tell it only to trusted 
editors. Set this command in config.php :

    $DeleteKeyPattern = "^\\s*Abracadabra\\s*$";

The new keyword will not be "delete" as is the default installation, 
but "Abracadabra". (You can change it of course.)

* Don't touch the other characters ^\\s*$ unless you know what they mean.
* Don't use other symbols +.[]\/* etc. unless you know what they mean.


Petko




More information about the pmwiki-users mailing list