Diff
Not logged in

Differences From:

File src/timeline.c part of check-in [1a4dd313a8] - Show the user who make the change on the timeline, both on the www interface and in the cli. by drh on 2007-07-30 17:24:47. [view]

To:

File src/timeline.c part of check-in [5ebcedc33e] - Require read permission (permission to read tickets and configuration histories) to view the global timeline. by dan on 2007-07-31 16:34:09. [view]

@@ -53,8 +53,14 @@
 */
 void page_timeline(void){
   Stmt q;
   char zPrevDate[20];
+
+  /* To view the timeline, must have permission to read project data.
+  */
+  login_check_credentials();
+  if( !g.okRdTkt ){ login_needed(); return; }
+
   style_header("Timeline");
   zPrevDate[0] = 0;
   db_prepare(&q,
     "SELECT uuid, datetime(event.mtime,'localtime'), comment, user"