Fossil SCM

/json/dir now requires Read ("o"), instead of Hyperlink ("h") permission, analog to checkin [ded8615f95].

stephan 2012-07-20 15:19 trunk
Commit 625ed00498b13f22dab2a837f960cb062e9a5c74
1 file changed +2 -2
+2 -2
--- src/json_dir.c
+++ src/json_dir.c
@@ -66,12 +66,12 @@
6666
char * zUuid = NULL;
6767
char const * zCI = NULL;
6868
Manifest * pM = NULL;
6969
Stmt q = empty_Stmt;
7070
int rid = 0;
71
- if( !g.perm.Hyperlink ){
72
- json_set_err(FSL_JSON_E_DENIED, "Requires 'h' permissions.");
71
+ if( !g.perm.Read ){
72
+ json_set_err(FSL_JSON_E_DENIED, "Requires 'o' permissions.");
7373
return NULL;
7474
}
7575
zCI = json_find_option_cstr("checkin",NULL,"ci" );
7676
7777
/* If a specific check-in is requested, fetch and parse it. If the
7878
--- src/json_dir.c
+++ src/json_dir.c
@@ -66,12 +66,12 @@
66 char * zUuid = NULL;
67 char const * zCI = NULL;
68 Manifest * pM = NULL;
69 Stmt q = empty_Stmt;
70 int rid = 0;
71 if( !g.perm.Hyperlink ){
72 json_set_err(FSL_JSON_E_DENIED, "Requires 'h' permissions.");
73 return NULL;
74 }
75 zCI = json_find_option_cstr("checkin",NULL,"ci" );
76
77 /* If a specific check-in is requested, fetch and parse it. If the
78
--- src/json_dir.c
+++ src/json_dir.c
@@ -66,12 +66,12 @@
66 char * zUuid = NULL;
67 char const * zCI = NULL;
68 Manifest * pM = NULL;
69 Stmt q = empty_Stmt;
70 int rid = 0;
71 if( !g.perm.Read ){
72 json_set_err(FSL_JSON_E_DENIED, "Requires 'o' permissions.");
73 return NULL;
74 }
75 zCI = json_find_option_cstr("checkin",NULL,"ci" );
76
77 /* If a specific check-in is requested, fetch and parse it. If the
78

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button