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 link => "ikiwiki/PageSpec",
25 sub canedit ($$$) { #{{{
32 if (exists $config{anonok_pagespec} && length $config{anonok_pagespec}) {
33 if (pagespec_match($page, $config{anonok_pagespec},