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

jeremy_c 2010-01-13 10:10 trunk
Commit acba194c0dfb3e7e5c5b6116ad53b5e4aab99e5f
1 file changed +1 -1
+1 -1
--- src/doc.c
+++ src/doc.c
@@ -337,11 +337,11 @@
337337
int i; /* Loop counter */
338338
Blob filebody; /* Content of the documentation file */
339339
char zBaseline[UUID_SIZE+1]; /* Baseline UUID */
340340
341341
login_check_credentials();
342
- if( !g.okRead ){ login_needed(); return; }
342
+ if( !g.okRdWiki ){ login_needed(); return; }
343343
zName = PD("name", "tip/index.wiki");
344344
for(i=0; zName[i] && zName[i]!='/'; i++){}
345345
if( zName[i]==0 || i>UUID_SIZE ){
346346
goto doc_not_found;
347347
}
348348
--- 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

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button