Fossil SCM
Change the "dir" webpage to require read permission.
Commit
ded8615f952666328b656e506fe4eedb516cd21f
Parent
6f594af62733e5c…
1 file changed
+1
-1
+1
-1
| --- src/browse.c | ||
| +++ src/browse.c | ||
| @@ -120,11 +120,11 @@ | ||
| 120 | 120 | Blob dirname; |
| 121 | 121 | Manifest *pM = 0; |
| 122 | 122 | const char *zSubdirLink; |
| 123 | 123 | |
| 124 | 124 | login_check_credentials(); |
| 125 | - if( !g.perm.Hyperlink ){ login_needed(); return; } | |
| 125 | + if( !g.perm.Read ){ login_needed(); return; } | |
| 126 | 126 | while( nD>1 && zD[nD-2]=='/' ){ zD[(--nD)-1] = 0; } |
| 127 | 127 | style_header("File List"); |
| 128 | 128 | sqlite3_create_function(g.db, "pathelement", 2, SQLITE_UTF8, 0, |
| 129 | 129 | pathelementFunc, 0, 0); |
| 130 | 130 | |
| 131 | 131 |
| --- src/browse.c | |
| +++ src/browse.c | |
| @@ -120,11 +120,11 @@ | |
| 120 | Blob dirname; |
| 121 | Manifest *pM = 0; |
| 122 | const char *zSubdirLink; |
| 123 | |
| 124 | login_check_credentials(); |
| 125 | if( !g.perm.Hyperlink ){ login_needed(); return; } |
| 126 | while( nD>1 && zD[nD-2]=='/' ){ zD[(--nD)-1] = 0; } |
| 127 | style_header("File List"); |
| 128 | sqlite3_create_function(g.db, "pathelement", 2, SQLITE_UTF8, 0, |
| 129 | pathelementFunc, 0, 0); |
| 130 | |
| 131 |
| --- src/browse.c | |
| +++ src/browse.c | |
| @@ -120,11 +120,11 @@ | |
| 120 | Blob dirname; |
| 121 | Manifest *pM = 0; |
| 122 | const char *zSubdirLink; |
| 123 | |
| 124 | login_check_credentials(); |
| 125 | if( !g.perm.Read ){ login_needed(); return; } |
| 126 | while( nD>1 && zD[nD-2]=='/' ){ zD[(--nD)-1] = 0; } |
| 127 | style_header("File List"); |
| 128 | sqlite3_create_function(g.db, "pathelement", 2, SQLITE_UTF8, 0, |
| 129 | pathelementFunc, 0, 0); |
| 130 | |
| 131 |