2 package IkiWiki::Plugin::anonok;
9 hook(type => "getsetup", id => "anonok", call => \&getsetup);
10 hook(type => "canedit", id => "anonok", call => \&canedit);
13 sub getsetup () { #{{{
17 example => "*/discussion",
18 description => "PageSpec to limit which pages anonymous users can edit",
24 sub canedit ($$$) { #{{{
31 if (exists $config{anonok_pagespec} && length $config{anonok_pagespec}) {
32 if (pagespec_match($page, $config{anonok_pagespec},