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",
19 description_html => htmllink("", "", "ikiwiki/PageSpec", noimageinline => 1).
20 " to limit which pages anonymous users can edit",
26 sub canedit ($$$) { #{{{
33 if (exists $config{anonok_pagespec} && length $config{anonok_pagespec}) {
34 if (pagespec_match($page, $config{anonok_pagespec},