Fossil SCM
Add comments for FOSSIL_FORCE_*_MODERATION environment variables.
Commit
2eafdad737e742613efa0305416877d499818da7
Parent
bf3f5d7947c480e…
2 files changed
+7
+7
+7
| --- src/tkt.c | ||
| +++ src/tkt.c | ||
| @@ -281,10 +281,17 @@ | ||
| 281 | 281 | ** attachments. |
| 282 | 282 | */ |
| 283 | 283 | int ticket_need_moderation( |
| 284 | 284 | int localUser /* Are we being called for a local interactive user? */ |
| 285 | 285 | ){ |
| 286 | + /* | |
| 287 | + ** If the FOSSIL_FORCE_TICKET_MODERATION variable is set, *ALL* changes for | |
| 288 | + ** tickets will be required to go through moderation (even those performed | |
| 289 | + ** by the local interactive user via the command line). This can be useful | |
| 290 | + ** for local (or remote) testing of the moderation subsystem and its impact | |
| 291 | + ** on the contents and status of tickets. | |
| 292 | + */ | |
| 286 | 293 | if( fossil_getenv("FOSSIL_FORCE_TICKET_MODERATION")!=0 ){ |
| 287 | 294 | return 1; |
| 288 | 295 | } |
| 289 | 296 | if( localUser ){ |
| 290 | 297 | return 0; |
| 291 | 298 |
| --- src/tkt.c | |
| +++ src/tkt.c | |
| @@ -281,10 +281,17 @@ | |
| 281 | ** attachments. |
| 282 | */ |
| 283 | int ticket_need_moderation( |
| 284 | int localUser /* Are we being called for a local interactive user? */ |
| 285 | ){ |
| 286 | if( fossil_getenv("FOSSIL_FORCE_TICKET_MODERATION")!=0 ){ |
| 287 | return 1; |
| 288 | } |
| 289 | if( localUser ){ |
| 290 | return 0; |
| 291 |
| --- src/tkt.c | |
| +++ src/tkt.c | |
| @@ -281,10 +281,17 @@ | |
| 281 | ** attachments. |
| 282 | */ |
| 283 | int ticket_need_moderation( |
| 284 | int localUser /* Are we being called for a local interactive user? */ |
| 285 | ){ |
| 286 | /* |
| 287 | ** If the FOSSIL_FORCE_TICKET_MODERATION variable is set, *ALL* changes for |
| 288 | ** tickets will be required to go through moderation (even those performed |
| 289 | ** by the local interactive user via the command line). This can be useful |
| 290 | ** for local (or remote) testing of the moderation subsystem and its impact |
| 291 | ** on the contents and status of tickets. |
| 292 | */ |
| 293 | if( fossil_getenv("FOSSIL_FORCE_TICKET_MODERATION")!=0 ){ |
| 294 | return 1; |
| 295 | } |
| 296 | if( localUser ){ |
| 297 | return 0; |
| 298 |
+7
| --- src/wiki.c | ||
| +++ src/wiki.c | ||
| @@ -163,10 +163,17 @@ | ||
| 163 | 163 | ** attachments. |
| 164 | 164 | */ |
| 165 | 165 | int wiki_need_moderation( |
| 166 | 166 | int localUser /* Are we being called for a local interactive user? */ |
| 167 | 167 | ){ |
| 168 | + /* | |
| 169 | + ** If the FOSSIL_FORCE_WIKI_MODERATION variable is set, *ALL* changes for | |
| 170 | + ** wiki pages will be required to go through moderation (even those performed | |
| 171 | + ** by the local interactive user via the command line). This can be useful | |
| 172 | + ** for local (or remote) testing of the moderation subsystem and its impact | |
| 173 | + ** on the contents and status of wiki pages. | |
| 174 | + */ | |
| 168 | 175 | if( fossil_getenv("FOSSIL_FORCE_WIKI_MODERATION")!=0 ){ |
| 169 | 176 | return 1; |
| 170 | 177 | } |
| 171 | 178 | if( localUser ){ |
| 172 | 179 | return 0; |
| 173 | 180 |
| --- src/wiki.c | |
| +++ src/wiki.c | |
| @@ -163,10 +163,17 @@ | |
| 163 | ** attachments. |
| 164 | */ |
| 165 | int wiki_need_moderation( |
| 166 | int localUser /* Are we being called for a local interactive user? */ |
| 167 | ){ |
| 168 | if( fossil_getenv("FOSSIL_FORCE_WIKI_MODERATION")!=0 ){ |
| 169 | return 1; |
| 170 | } |
| 171 | if( localUser ){ |
| 172 | return 0; |
| 173 |
| --- src/wiki.c | |
| +++ src/wiki.c | |
| @@ -163,10 +163,17 @@ | |
| 163 | ** attachments. |
| 164 | */ |
| 165 | int wiki_need_moderation( |
| 166 | int localUser /* Are we being called for a local interactive user? */ |
| 167 | ){ |
| 168 | /* |
| 169 | ** If the FOSSIL_FORCE_WIKI_MODERATION variable is set, *ALL* changes for |
| 170 | ** wiki pages will be required to go through moderation (even those performed |
| 171 | ** by the local interactive user via the command line). This can be useful |
| 172 | ** for local (or remote) testing of the moderation subsystem and its impact |
| 173 | ** on the contents and status of wiki pages. |
| 174 | */ |
| 175 | if( fossil_getenv("FOSSIL_FORCE_WIKI_MODERATION")!=0 ){ |
| 176 | return 1; |
| 177 | } |
| 178 | if( localUser ){ |
| 179 | return 0; |
| 180 |