Diff
Not logged in

Differences From:

File src/xfer.c part of check-in [4c072728b4] - Add a quick hack that disables delta compression on xfer. This gives people a chance to synchronize the previous fix. We will eventually remove the hack. by drh on 2007-08-09 03:47:28. [view]

To:

File src/xfer.c part of check-in [13b7ac16e4] - Require history permission in order to clone. by drh on 2007-08-09 10:43:39. [view]

@@ -458,11 +458,11 @@
     ** The client knows nothing.  Tell all.
     */
     if( blob_eq(&aToken[0], "clone") ){
       login_check_credentials();
-      if( !g.okRead ){
+      if( !g.okRead || !g.okHistory ){
         cgi_reset_content();
-        @ error not\sauthorized\sto\sread
+        @ error not\sauthorized\sto\sclone
         nErr++;
         break;
       }
       isPull = 1;