can't lock wiki due to permissions (probably)
authorJoey Hess <joey@kodama.kitenet.net>
Fri, 24 Oct 2008 19:02:54 +0000 (15:02 -0400)
committerJoey Hess <joey@kodama.kitenet.net>
Fri, 24 Oct 2008 19:02:54 +0000 (15:02 -0400)
luckily, don't really need to here

IkiWiki/Receive.pm

index 9a672abc99ca2742f5373d737280ad8a6bbe830a..81b67d9b47d5c527bfb538c706a4ea42aedf64ab 100644 (file)
@@ -33,7 +33,8 @@ sub test () { #{{{
        $session->param("name", getuser());
        $ENV{REMOTE_ADDR}='unknown' unless exists $ENV{REMOTE_ADDR};
 
-       IkiWiki::lockwiki();
+       # Wiki is not locked because we lack permission to do so.
+       # So, relying on atomic index file updates to avoid trouble.
        IkiWiki::loadindex();
 
        my %newfiles;
@@ -59,8 +60,8 @@ sub test () { #{{{
                    $change->{action} eq 'add') {
                        if (defined $page) {
                                if (IkiWiki->can("check_canedit")) {
-                                   IkiWiki::check_canedit($page, $cgi, $session);
-                                   next;
+                                       IkiWiki::check_canedit($page, $cgi, $session);
+                                       next;
                                }
                        }
                        else {