Fossil SCM
Require wiki edit privilege in order to edit the Sandbox wiki page, just like any other wiki page.
Commit
2a3e85f2d5d34b20a5663990e3ee156aa7d90fb4
Parent
aef81bf344e688a…
1 file changed
+4
+4
| --- src/wiki.c | ||
| +++ src/wiki.c | ||
| @@ -218,10 +218,14 @@ | ||
| 218 | 218 | login_check_credentials(); |
| 219 | 219 | zPageName = PD("name",""); |
| 220 | 220 | if( check_name(zPageName) ) return; |
| 221 | 221 | isSandbox = is_sandbox(zPageName); |
| 222 | 222 | if( isSandbox ){ |
| 223 | + if( !g.okWrWiki ){ | |
| 224 | + login_needed(); | |
| 225 | + return; | |
| 226 | + } | |
| 223 | 227 | if( zBody==0 ){ |
| 224 | 228 | zBody = db_get("sandbox",""); |
| 225 | 229 | } |
| 226 | 230 | }else{ |
| 227 | 231 | zTag = mprintf("wiki-%s", zPageName); |
| 228 | 232 |
| --- src/wiki.c | |
| +++ src/wiki.c | |
| @@ -218,10 +218,14 @@ | |
| 218 | login_check_credentials(); |
| 219 | zPageName = PD("name",""); |
| 220 | if( check_name(zPageName) ) return; |
| 221 | isSandbox = is_sandbox(zPageName); |
| 222 | if( isSandbox ){ |
| 223 | if( zBody==0 ){ |
| 224 | zBody = db_get("sandbox",""); |
| 225 | } |
| 226 | }else{ |
| 227 | zTag = mprintf("wiki-%s", zPageName); |
| 228 |
| --- src/wiki.c | |
| +++ src/wiki.c | |
| @@ -218,10 +218,14 @@ | |
| 218 | login_check_credentials(); |
| 219 | zPageName = PD("name",""); |
| 220 | if( check_name(zPageName) ) return; |
| 221 | isSandbox = is_sandbox(zPageName); |
| 222 | if( isSandbox ){ |
| 223 | if( !g.okWrWiki ){ |
| 224 | login_needed(); |
| 225 | return; |
| 226 | } |
| 227 | if( zBody==0 ){ |
| 228 | zBody = db_get("sandbox",""); |
| 229 | } |
| 230 | }else{ |
| 231 | zTag = mprintf("wiki-%s", zPageName); |
| 232 |