Fossil SCM
/json/dir now requires Read ("o"), instead of Hyperlink ("h") permission, analog to checkin [ded8615f95].
Commit
625ed00498b13f22dab2a837f960cb062e9a5c74
Parent
dfce20e487f3c86…
1 file changed
+2
-2
+2
-2
| --- src/json_dir.c | ||
| +++ src/json_dir.c | ||
| @@ -66,12 +66,12 @@ | ||
| 66 | 66 | char * zUuid = NULL; |
| 67 | 67 | char const * zCI = NULL; |
| 68 | 68 | Manifest * pM = NULL; |
| 69 | 69 | Stmt q = empty_Stmt; |
| 70 | 70 | 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."); | |
| 73 | 73 | return NULL; |
| 74 | 74 | } |
| 75 | 75 | zCI = json_find_option_cstr("checkin",NULL,"ci" ); |
| 76 | 76 | |
| 77 | 77 | /* If a specific check-in is requested, fetch and parse it. If the |
| 78 | 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.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 |