2 package IkiWiki::Plugin::anonok;
9 hook(type => "getsetup", id => "anonok", call => \&getsetup);
10 hook(type => "canedit", id => "anonok", call => \&canedit);
13 sub getsetup () { #{{{
21 example => "*/discussion",
22 description => "PageSpec to limit which pages anonymous users can edit",
23 link => "ikiwiki/PageSpec",
29 sub canedit ($$$) { #{{{
36 if (exists $config{anonok_pagespec} && length $config{anonok_pagespec}) {
37 if (pagespec_match($page, $config{anonok_pagespec},