Fossil SCM
The "clone" privilege (letter "g") implies the ability to "fossil pull".
Commit
e81cac374b73f1c0ebe4cb178cf2a4700e5057a6b05155c4405f4a9062e17f21
Parent
fa7f71560f2780c…
1 file changed
+1
+1
| --- src/xfer.c | ||
| +++ src/xfer.c | ||
| @@ -1296,10 +1296,11 @@ | ||
| 1296 | 1296 | fossil_redirect_home(); |
| 1297 | 1297 | } |
| 1298 | 1298 | g.zLogin = "anonymous"; |
| 1299 | 1299 | login_set_anon_nobody_capabilities(); |
| 1300 | 1300 | login_check_credentials(); |
| 1301 | + if( g.perm.Clone ) g.perm.Read = 1; | |
| 1301 | 1302 | cgi_check_for_malice(); |
| 1302 | 1303 | memset(&xfer, 0, sizeof(xfer)); |
| 1303 | 1304 | blobarray_zero(xfer.aToken, count(xfer.aToken)); |
| 1304 | 1305 | cgi_set_content_type(g.zContentType); |
| 1305 | 1306 | cgi_reset_content(); |
| 1306 | 1307 |
| --- src/xfer.c | |
| +++ src/xfer.c | |
| @@ -1296,10 +1296,11 @@ | |
| 1296 | fossil_redirect_home(); |
| 1297 | } |
| 1298 | g.zLogin = "anonymous"; |
| 1299 | login_set_anon_nobody_capabilities(); |
| 1300 | login_check_credentials(); |
| 1301 | cgi_check_for_malice(); |
| 1302 | memset(&xfer, 0, sizeof(xfer)); |
| 1303 | blobarray_zero(xfer.aToken, count(xfer.aToken)); |
| 1304 | cgi_set_content_type(g.zContentType); |
| 1305 | cgi_reset_content(); |
| 1306 |
| --- src/xfer.c | |
| +++ src/xfer.c | |
| @@ -1296,10 +1296,11 @@ | |
| 1296 | fossil_redirect_home(); |
| 1297 | } |
| 1298 | g.zLogin = "anonymous"; |
| 1299 | login_set_anon_nobody_capabilities(); |
| 1300 | login_check_credentials(); |
| 1301 | if( g.perm.Clone ) g.perm.Read = 1; |
| 1302 | cgi_check_for_malice(); |
| 1303 | memset(&xfer, 0, sizeof(xfer)); |
| 1304 | blobarray_zero(xfer.aToken, count(xfer.aToken)); |
| 1305 | cgi_set_content_type(g.zContentType); |
| 1306 | cgi_reset_content(); |
| 1307 |