]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/lockedit.pm
* htmltidy: Pass --markup yes, in case tidy's config file disabled it.
[git.ikiwiki.info.git] / IkiWiki / Plugin / lockedit.pm
index 5a4e2fc385822006c55ad0056475624b1ed99d0f..010705c49a4fc460976b3239227c972d05d6df76 100644 (file)
@@ -22,7 +22,7 @@ sub canedit ($$) { #{{{
        foreach my $admin (@{$config{adminuser}}) {
                if (pagespec_match($page, IkiWiki::userinfo_get($admin, "locked_pages"))) {
                        if (! defined $user ||
        foreach my $admin (@{$config{adminuser}}) {
                if (pagespec_match($page, IkiWiki::userinfo_get($admin, "locked_pages"))) {
                        if (! defined $user ||
-                           ! userinfo_get($session->param("name"), "regdate")) {
+                           ! IkiWiki::userinfo_get($session->param("name"), "regdate")) {
                                return sub { IkiWiki::needsignin($cgi, $session) };
                        }
                        else {
                                return sub { IkiWiki::needsignin($cgi, $session) };
                        }
                        else {