]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/signinedit.pm
Merge remote branch 'remotes/GiuseppeBilotta/master'
[git.ikiwiki.info.git] / IkiWiki / Plugin / signinedit.pm
index 321c93ed522141ad6a11f7d14b5ed7a1a3fa2354..8b44a68f725230118d7fe71619793a1bac3199b2 100644 (file)
@@ -3,7 +3,7 @@ package IkiWiki::Plugin::signinedit;
 
 use warnings;
 use strict;
 
 use warnings;
 use strict;
-use IkiWiki 2.00;
+use IkiWiki 3.00;
 
 sub import {
        hook(type => "getsetup", id => "signinedit", call => \&getsetup);
 
 sub import {
        hook(type => "getsetup", id => "signinedit", call => \&getsetup);
@@ -29,6 +29,7 @@ sub canedit ($$$) {
        # signin can override this.
         if (! defined $session->param("name") ||
             ! IkiWiki::userinfo_get($session->param("name"), "regdate")) {
        # 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 {
                return sub { IkiWiki::needsignin($cgi, $session) };
        }
        else {