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