signinedit: Auto-disable the plugin when all authentication methods are disabled.

master
Joey Hess 2010-01-04 14:56:04 -05:00
parent aed16b4833
commit f8bd25bfc7
2 changed files with 3 additions and 0 deletions

View 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 {

2
debian/changelog vendored
View 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