From f8bd25bfc7c590abbd31f42bb4d745d43c3d7f14 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Mon, 4 Jan 2010 14:56:04 -0500 Subject: [PATCH] signinedit: Auto-disable the plugin when all authentication methods are disabled. --- IkiWiki/Plugin/signinedit.pm | 1 + debian/changelog | 2 ++ 2 files changed, 3 insertions(+) diff --git a/IkiWiki/Plugin/signinedit.pm b/IkiWiki/Plugin/signinedit.pm index 032a0034c..8b44a68f7 100644 --- a/IkiWiki/Plugin/signinedit.pm +++ b/IkiWiki/Plugin/signinedit.pm @@ -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 { diff --git a/debian/changelog b/debian/changelog index df3490640..aa4f1ac3c 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 Mon, 04 Jan 2010 12:53:24 -0500 -- 2.26.2