I just tried to lock some pages via the lockedit plugin in my wiki but it does not work. Not any page I've tried gets locked. Here's a snipped of my setup:
add_plugins => [qw{goodstuff edittemplate filecheck getsource htmltidy recentchanges relativedate rename remove search sidebar po httpauth attachment img 404 inline localstyle pagestats progress orphans map toc brokenlinks autoindex anonok blogspam recentchangesdiff}],
disable_plugins => [qw{smiley openid theme}],
[...]
anonok_pagespec => '*',
[...]
locked_pages => 'todo and todo/done and index and ikiwiki/*',
Is there an interference between anonok and lockedit or is there just a typo?
I can't imagine another source of the problem. Hope you can help me. --?bacuh
anonok might take precedence over lockedit (it depends which gets loaded first). You should change
anonok_pagespec
to not cover thelocked_pages
.(It might be better if lockedit always applied first, though; except then it'd interfere with opendiscussion, so maybe opendiscussion should apply first of all...)
Ooops, that was wrong.
It is just not possible to edit those pages anonymously. Lockedit still doesn't work.
I didn't spot it before, but this is wrong: you want "or" instead of "and".
It's a condition under which pages are to be locked: you're trying to lock all pages that are simultaneously todo, todo/done and some other names, which is an impossible condition to satisfy, so nothing is locked!
Obvious! Should have realized that.
May this help other people.