Diff
Not logged in

Differences From:

File src/report.c part of check-in [cd965de682] - Fix some compiler warnings. by drh on 2009-01-24 10:44:43. [view]

To:

File src/report.c part of check-in [623a9129c8] - Update to the latest SQLite. On the "Ticket" page, if "nobody" is not allowed to create new tickets but "anonymous" is, then offer a hyperlink to log in as anonymous. Change the default settings to be more secure. by drh on 2009-07-06 23:53:18. [view]

@@ -46,8 +46,14 @@
     @ <p>Enter a new ticket:</p>
     @ <ol><li value="1"><a href="tktnew">New ticket</a></li></ol>
     @
     cnt++;
+  }else if( db_exists(
+      "SELECT 1 FROM user"
+      " WHERE login='anonymous' AND cap GLOB '*n*'")
+  ){
+    @ <p><a href="login?anon=1&g=tktnew">Login as "anonymous"</a>
+    @ to enter a new ticket.</p>
   }
   if( !g.okRdTkt ){
     @ <p>You are not authorized to view existing tickets.</p>
   }else{