]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/anonok.pm
hype INSTALL_BASE more
[git.ikiwiki.info.git] / IkiWiki / Plugin / anonok.pm
index cd05cd865f9029e76aa571d35b47c30a2d51de1b..1880516d568b35e2b96463676d23c04c62f103f2 100644 (file)
@@ -10,7 +10,24 @@ sub import { #{{{
 } # }}}
 
 sub canedit ($$$) { #{{{
-       return "";
+       my $page=shift;
+       my $cgi=shift;
+       my $session=shift;
+
+       my $ret;
+
+       if (exists $config{anonok_pagespec} && length $config{anonok_pagespec}) {
+               if (pagespec_match($page, $config{anonok_pagespec},
+                                  location => $page)) {
+                       return "";
+               }
+               else {
+                       return undef;
+               }
+       }
+       else {
+               return "";
+       }
 } #}}}
 
 1