Fix documentation of anonok_pagespec. Closes: #521793

master
Joey Hess 2009-03-30 13:07:50 -04:00
parent 06dc69946f
commit 7bbe9cf94d
3 changed files with 4 additions and 3 deletions

1
debian/changelog vendored
View File

@ -10,6 +10,7 @@ ikiwiki (3.09) UNRELEASED; urgency=low
* comments: Fix too loose test for comments pages that matched
normal pages with "comment_" in their name. Closes: #521322
* comments: Fix anchor ids to be legal xhtml. Closes: #521339
* Fix documentation of anonok_pagespec. Closes: #521793
-- Joey Hess <joeyh@debian.org> Thu, 19 Mar 2009 15:32:49 -0400

View File

@ -5,10 +5,10 @@ By default, anonymous users cannot edit the wiki. This plugin allows
anonymous web users, who have not signed in, to edit any page in the wiki
by default.
The plugin also has a configuration setting, `anonok_pages`. This
The plugin also has a configuration setting, `anonok_pagespec`. This
[[PageSpec]] can be used to allow anonymous editing of matching pages.
If you're using the [[comments]] plugin, you can allow anonymous comments
to be posted by setting:
anonok_pages => "postcomment(*)"
anonok_pagespec => "postcomment(*)"

View File

@ -60,7 +60,7 @@ spam problems. So, use `check_canedit` as at least a first-level check?
> have postcomment(blog/*) or something. (Perhaps instead of taking a glob, postcomment
> should take a pagespec, so you can have postcomment(link(tags/commentable))?)
>
> This is why `anonok_pages => 'postcomment(*)'` and `locked_pages => '!postcomment(*)'`
> This is why `anonok_pagespec => 'postcomment(*)'` and `locked_pages => '!postcomment(*)'`
> are necessary to allow anonymous and logged-in editing (respectively).
>
>> I changed that to move the flag out of the page name, and into a variable that the `match_postcomment`