Fossil SCM
Fixed bug where /doc could only be read if the user had checkout security. Users with read wiki security can now also read /doc
Commit
acba194c0dfb3e7e5c5b6116ad53b5e4aab99e5f
Parent
5fc36e2faabf13e…
1 file changed
+1
-1
+1
-1
| --- src/doc.c | ||
| +++ src/doc.c | ||
| @@ -337,11 +337,11 @@ | ||
| 337 | 337 | int i; /* Loop counter */ |
| 338 | 338 | Blob filebody; /* Content of the documentation file */ |
| 339 | 339 | char zBaseline[UUID_SIZE+1]; /* Baseline UUID */ |
| 340 | 340 | |
| 341 | 341 | login_check_credentials(); |
| 342 | - if( !g.okRead ){ login_needed(); return; } | |
| 342 | + if( !g.okRdWiki ){ login_needed(); return; } | |
| 343 | 343 | zName = PD("name", "tip/index.wiki"); |
| 344 | 344 | for(i=0; zName[i] && zName[i]!='/'; i++){} |
| 345 | 345 | if( zName[i]==0 || i>UUID_SIZE ){ |
| 346 | 346 | goto doc_not_found; |
| 347 | 347 | } |
| 348 | 348 |
| --- src/doc.c | |
| +++ src/doc.c | |
| @@ -337,11 +337,11 @@ | |
| 337 | int i; /* Loop counter */ |
| 338 | Blob filebody; /* Content of the documentation file */ |
| 339 | char zBaseline[UUID_SIZE+1]; /* Baseline UUID */ |
| 340 | |
| 341 | login_check_credentials(); |
| 342 | if( !g.okRead ){ login_needed(); return; } |
| 343 | zName = PD("name", "tip/index.wiki"); |
| 344 | for(i=0; zName[i] && zName[i]!='/'; i++){} |
| 345 | if( zName[i]==0 || i>UUID_SIZE ){ |
| 346 | goto doc_not_found; |
| 347 | } |
| 348 |
| --- src/doc.c | |
| +++ src/doc.c | |
| @@ -337,11 +337,11 @@ | |
| 337 | int i; /* Loop counter */ |
| 338 | Blob filebody; /* Content of the documentation file */ |
| 339 | char zBaseline[UUID_SIZE+1]; /* Baseline UUID */ |
| 340 | |
| 341 | login_check_credentials(); |
| 342 | if( !g.okRdWiki ){ login_needed(); return; } |
| 343 | zName = PD("name", "tip/index.wiki"); |
| 344 | for(i=0; zName[i] && zName[i]!='/'; i++){} |
| 345 | if( zName[i]==0 || i>UUID_SIZE ){ |
| 346 | goto doc_not_found; |
| 347 | } |
| 348 |