response
authorJoey Hess <joey@gnu.kitenet.net>
Fri, 5 Feb 2010 20:22:02 +0000 (15:22 -0500)
committerJoey Hess <joey@gnu.kitenet.net>
Fri, 5 Feb 2010 20:22:02 +0000 (15:22 -0500)
IkiWiki/Plugin/httpauth.pm
doc/forum/where_are_the_tags.mdwn

index 127c321f0491978c9b88760685963f785cd1062e..c1811643b7c77666b0b9e9ff95ceaea7de6ba100 100644 (file)
@@ -9,6 +9,8 @@ use IkiWiki 3.00;
 sub import {
        hook(type => "getsetup", id => "httpauth", call => \&getsetup);
        hook(type => "auth", id => "httpauth", call => \&auth);
+       hook(type => "canedit", id => "httpauth", call => \&canedit,
+               last => 1);
 }
 
 sub getsetup () {
@@ -33,10 +35,20 @@ sub auth ($$) {
        if (defined $cgi->remote_user()) {
                $session->param("name", $cgi->remote_user());
        }
-       elsif (defined $config{cgiauthurl}) {
+}
+
+sub canedit ($$$) {
+       my $page=shift;
+       my $cgi=shift;
+       my $session=shift;
+
+       if (! defined $cgi->remote_user() && defined $config{cgiauthurl}) {
                IkiWiki::redirect($cgi, $config{cgiauthurl}.'?'.$cgi->query_string());
                exit;
        }
+       else {
+               return undef;
+       }
 }
 
 1
index 3a4debfe578fae86caa72cb94f2c3c2a92c791db..ecb49fe43645b57a222206813241d1618a00c4de 100644 (file)
@@ -1,2 +1,9 @@
 Where is the tag cloud/tag listing of all the tags used in this wiki? I know we
 have tags enabled. --[[jerojasro]]
+
+> This wiki does not use one global toplevel set of tags (`tagbase` is not
+> set).
+> 
+> There are tags used for the [[plugins]], and a tag cloud of those
+> there. [[wishlist]] and [[patch]] are tags too, but I don't see the point
+> of a tag cloud for such tags. --[[Joey]]