Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:/json/dir now requires Read ("o"), instead of Hyperlink ("h") permission, analog to checkin [ded8615f95].
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:625ed00498b13f22dab2a837f960cb062e9a5c74
User & Date: stephan 2012-07-20 15:19:07
Context
2012-07-22
17:40
Pulled in minor memleak fix [bee0036681]. check-in: 11abffbb user: stephan tags: trunk
2012-07-20
15:19
/json/dir now requires Read ("o"), instead of Hyperlink ("h") permission, analog to checkin [ded8615f95]. check-in: 625ed004 user: stephan tags: trunk
15:06
Replaced $(x) with gebi(x), as per ML discussion. check-in: dfce20e4 user: stephan tags: trunk
Changes

Changes to src/json_dir.c.

64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
  char const * zDX = NULL;
  int nD;
  char * zUuid = NULL;
  char const * zCI = NULL;
  Manifest * pM = NULL;
  Stmt q = empty_Stmt;
  int rid = 0;
  if( !g.perm.Hyperlink ){
    json_set_err(FSL_JSON_E_DENIED, "Requires 'h' permissions.");
    return NULL;
  }
  zCI = json_find_option_cstr("checkin",NULL,"ci" );

  /* If a specific check-in is requested, fetch and parse it.  If the
  ** specific check-in does not exist, clear zCI.  zCI==0 will cause all
  ** files from all check-ins to be displayed.







|
|







64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
  char const * zDX = NULL;
  int nD;
  char * zUuid = NULL;
  char const * zCI = NULL;
  Manifest * pM = NULL;
  Stmt q = empty_Stmt;
  int rid = 0;
  if( !g.perm.Read ){
    json_set_err(FSL_JSON_E_DENIED, "Requires 'o' permissions.");
    return NULL;
  }
  zCI = json_find_option_cstr("checkin",NULL,"ci" );

  /* If a specific check-in is requested, fetch and parse it.  If the
  ** specific check-in does not exist, clear zCI.  zCI==0 will cause all
  ** files from all check-ins to be displayed.