signinedit: Auto-disable the plugin when all authentication methods are disabled.
authorJoey Hess <joey@gnu.kitenet.net>
Mon, 4 Jan 2010 19:56:04 +0000 (14:56 -0500)
committerJoey Hess <joey@gnu.kitenet.net>
Mon, 4 Jan 2010 19:56:17 +0000 (14:56 -0500)
IkiWiki/Plugin/signinedit.pm
debian/changelog

index 032a0034c0c4e3354ea8274a6259fb0478ad949e..8b44a68f725230118d7fe71619793a1bac3199b2 100644 (file)
@@ -29,6 +29,7 @@ sub canedit ($$$) {
        # signin can override this.
         if (! defined $session->param("name") ||
             ! IkiWiki::userinfo_get($session->param("name"), "regdate")) {
+               return "" unless exists $IkiWiki::hooks{auth};
                return sub { IkiWiki::needsignin($cgi, $session) };
        }
        else {
index df3490640abe9435a825b35daab51e8cfebd9243..aa4f1ac3c94f142ea0c8b3d159a1e7c0999dee10 100644 (file)
@@ -2,6 +2,8 @@ ikiwiki (3.20100104) UNRELEASED; urgency=low
 
   * inline: Avoid showing edit links if page editing is disabled.
     (Sjoerd)
+  * signinedit: Auto-disable the plugin when all authentication methods
+    are disabled.
 
  -- Joey Hess <joeyh@debian.org>  Mon, 04 Jan 2010 12:53:24 -0500