Fossil SCM
Require Read permission for the page that /info shows for a cluster artifact, which lists the hashes and descriptions of the artifacts the cluster names.
Commit
464ec546f1cf9f1690c28b8d7356f9ad6e37956a23735ac6d73165e2c75f6193
Parent
01b165a2d892d7c…
1 file changed
+2
+2
| --- src/info.c | ||
| +++ src/info.c | ||
| @@ -3302,10 +3302,12 @@ | ||
| 3302 | 3302 | int badRid = 0; |
| 3303 | 3303 | int rcvid; |
| 3304 | 3304 | int hashClr = PB("hclr"); |
| 3305 | 3305 | const char *zDate; |
| 3306 | 3306 | |
| 3307 | + login_check_credentials(); | |
| 3308 | + if( !g.perm.Read ){ login_needed(g.anon.Read); return; } | |
| 3307 | 3309 | pCluster = manifest_get(rid, CFTYPE_CLUSTER, 0); |
| 3308 | 3310 | if( pCluster==0 ){ |
| 3309 | 3311 | artifact_page(); |
| 3310 | 3312 | return; |
| 3311 | 3313 | } |
| 3312 | 3314 |
| --- src/info.c | |
| +++ src/info.c | |
| @@ -3302,10 +3302,12 @@ | |
| 3302 | int badRid = 0; |
| 3303 | int rcvid; |
| 3304 | int hashClr = PB("hclr"); |
| 3305 | const char *zDate; |
| 3306 | |
| 3307 | pCluster = manifest_get(rid, CFTYPE_CLUSTER, 0); |
| 3308 | if( pCluster==0 ){ |
| 3309 | artifact_page(); |
| 3310 | return; |
| 3311 | } |
| 3312 |
| --- src/info.c | |
| +++ src/info.c | |
| @@ -3302,10 +3302,12 @@ | |
| 3302 | int badRid = 0; |
| 3303 | int rcvid; |
| 3304 | int hashClr = PB("hclr"); |
| 3305 | const char *zDate; |
| 3306 | |
| 3307 | login_check_credentials(); |
| 3308 | if( !g.perm.Read ){ login_needed(g.anon.Read); return; } |
| 3309 | pCluster = manifest_get(rid, CFTYPE_CLUSTER, 0); |
| 3310 | if( pCluster==0 ){ |
| 3311 | artifact_page(); |
| 3312 | return; |
| 3313 | } |
| 3314 |