]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/signinedit.pm
releasing version 3.20100623
[git.ikiwiki.info.git] / IkiWiki / Plugin / signinedit.pm
index 321c93ed522141ad6a11f7d14b5ed7a1a3fa2354..31160c02ffb581ad28da533e42737db8761295fe 100644 (file)
@@ -3,7 +3,7 @@ package IkiWiki::Plugin::signinedit;
 
 use warnings;
 use strict;
-use IkiWiki 2.00;
+use IkiWiki 3.00;
 
 sub import {
        hook(type => "getsetup", id => "signinedit", call => \&getsetup);
@@ -16,6 +16,7 @@ sub getsetup () {
                plugin => {
                        safe => 1,
                        rebuild => 0,
+                       section => "auth",
                },
 }
 
@@ -29,6 +30,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 {