Fossil SCM
/json/artifact/CHECKIN now accepts "o" in addition to "h" privileges.
Commit
3628652dba10c62bfa7d155cc38ba0bf4494a1bf
Parent
6ca400a31520b36…
1 file changed
+2
-2
+2
-2
| --- src/json_artifact.c | ||
| +++ src/json_artifact.c | ||
| @@ -206,12 +206,12 @@ | ||
| 206 | 206 | |
| 207 | 207 | /* |
| 208 | 208 | ** Sub-impl of /json/artifact for checkins. |
| 209 | 209 | */ |
| 210 | 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." ); | |
| 211 | + if(! g.perm.History && !g.perm.Read ){ | |
| 212 | + json_set_err( FSL_JSON_E_DENIED, "Viewing checkins requires 'h' or 'o' access." ); | |
| 213 | 213 | return NULL; |
| 214 | 214 | }else{ |
| 215 | 215 | return json_artifact_for_ci(rid, 1); |
| 216 | 216 | } |
| 217 | 217 | } |
| 218 | 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 ){ |
| 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 |