Fossil SCM

Add comments for FOSSIL_FORCE_*_MODERATION environment variables.

mistachkin 2014-09-18 23:04 UTC please-review
Commit 2eafdad737e742613efa0305416877d499818da7
2 files changed +7 +7
+7
--- src/tkt.c
+++ src/tkt.c
@@ -281,10 +281,17 @@
281281
** attachments.
282282
*/
283283
int ticket_need_moderation(
284284
int localUser /* Are we being called for a local interactive user? */
285285
){
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
+ */
286293
if( fossil_getenv("FOSSIL_FORCE_TICKET_MODERATION")!=0 ){
287294
return 1;
288295
}
289296
if( localUser ){
290297
return 0;
291298
--- 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 @@
163163
** attachments.
164164
*/
165165
int wiki_need_moderation(
166166
int localUser /* Are we being called for a local interactive user? */
167167
){
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
+ */
168175
if( fossil_getenv("FOSSIL_FORCE_WIKI_MODERATION")!=0 ){
169176
return 1;
170177
}
171178
if( localUser ){
172179
return 0;
173180
--- 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

Keyboard Shortcuts

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