]> sipb.mit.edu Git - ikiwiki.git/commitdiff
fixes
authorJoey Hess <joey@kodama.kitenet.net>
Mon, 7 Jan 2008 21:37:19 +0000 (16:37 -0500)
committerJoey Hess <joey@kodama.kitenet.net>
Mon, 7 Jan 2008 21:37:19 +0000 (16:37 -0500)
IkiWiki/Plugin/lockedit.pm
IkiWiki/Plugin/signinedit.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 {
index d5729f70258a56c08f01b33eae4ec62969779409..84ab3a4d0cbc7777b8df2b5b8c62cb0f0b94a9c9 100644 (file)
@@ -19,7 +19,7 @@ sub canedit ($$$) { #{{{
        # hook runs last, so that any hooks that don't need the user to
        # signin can override this.
         if (! defined $session->param("name") ||
        # hook runs last, so that any hooks that don't need the user to
        # signin can override this.
         if (! defined $session->param("name") ||
-            ! 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 {