Fossil SCM

/json/artifact/CHECKIN now accepts only "o" permissions, to match the HTML interface.

stephan 2012-03-08 19:02 trunk
Commit 6b08628c7865f5fddac3f9f445f9d772cefb30e6
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 && !g.perm.Read ){
212
- json_set_err( FSL_JSON_E_DENIED, "Viewing checkins requires 'h' or 'o' access." );
211
+ if(!g.perm.Read){
212
+ json_set_err( FSL_JSON_E_DENIED, "Viewing checkins requires 'o' privileges." );
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 && !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
--- 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.Read){
212 json_set_err( FSL_JSON_E_DENIED, "Viewing checkins requires 'o' privileges." );
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