Fossil SCM

/json/artifact/CHECKIN now accepts "o" in addition to "h" privileges.

stephan 2012-03-08 18:50 trunk
Commit 3628652dba10c62bfa7d155cc38ba0bf4494a1bf
1 file changed +2 -2
--- src/json_artifact.c
+++ src/json_artifact.c
@@ -206,12 +206,12 @@
206206
207207
/*
208208
** Sub-impl of /json/artifact for checkins.
209209
*/
210210
static cson_value * json_artifact_ci( int rid ){
211
- if(! g.perm.History ){
212
- json_set_err( FSL_JSON_E_DENIED, "Viewing checkins requires 'h' access." );
211
+ if(! g.perm.History && !g.perm.Read ){
212
+ json_set_err( FSL_JSON_E_DENIED, "Viewing checkins requires 'h' or 'o' access." );
213213
return NULL;
214214
}else{
215215
return json_artifact_for_ci(rid, 1);
216216
}
217217
}
218218
--- src/json_artifact.c
+++ src/json_artifact.c
@@ -206,12 +206,12 @@
206
207 /*
208 ** Sub-impl of /json/artifact for checkins.
209 */
210 static cson_value * json_artifact_ci( int rid ){
211 if(! g.perm.History ){
212 json_set_err( FSL_JSON_E_DENIED, "Viewing checkins requires 'h' access." );
213 return NULL;
214 }else{
215 return json_artifact_for_ci(rid, 1);
216 }
217 }
218
--- src/json_artifact.c
+++ src/json_artifact.c
@@ -206,12 +206,12 @@
206
207 /*
208 ** Sub-impl of /json/artifact for checkins.
209 */
210 static cson_value * json_artifact_ci( int rid ){
211 if(! g.perm.History && !g.perm.Read ){
212 json_set_err( FSL_JSON_E_DENIED, "Viewing checkins requires 'h' or 'o' access." );
213 return NULL;
214 }else{
215 return json_artifact_for_ci(rid, 1);
216 }
217 }
218

Keyboard Shortcuts

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