diff options
-rw-r--r-- | IkiWiki/Plugin/signinedit.pm | 1 | ||||
-rw-r--r-- | debian/changelog | 2 |
2 files changed, 3 insertions, 0 deletions
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 <joeyh@debian.org> Mon, 04 Jan 2010 12:53:24 -0500 |