On 4/3/07, Dave Brockman <[EMAIL PROTECTED]> wrote: > Petko Yotov wrote: > > 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 > > Thanks! I'll do that. > > Dave >
If this is too sneaky, you could also use the Delete action recipe (Cookbook/DeleteAction) and simply require an admin password to use the delete action. Jon _______________________________________________ pmwiki-users mailing list [email protected] http://www.pmichaud.com/mailman/listinfo/pmwiki-users
