From a03b4665742c8965487b9c733621e3177f558090 Mon Sep 17 00:00:00 2001 From: Tom Fifield Date: Wed, 17 Aug 2016 16:42:31 +0800 Subject: [PATCH] Add 'autopatrol' group Patrolled Edits is a feature on mediawiki that allows marking edits as "known good" (i.e. ham, as opposed to spam). This can be used to list edits that have not been assessed, which makes spam easier to identify and deal with. Automatic patrolling is where this happens without human intervention. In our version of mediawiki, there is the ability to have defined users whose edits are automatically marked as 'patrolled'. This patch makes a new group, so that bureaucrats of the wiki can assign "known good" users to this group. The group is given the permission of 'autopatrol', which means users added to this group will have their edits automatically marked as 'patrolled'. Further information about this feature and how to verify the syntax for this patch is available at: https://www.mediawiki.org/wiki/Help:Patrolled_edits https://www.mediawiki.org/wiki/Manual:User_rights Change-Id: I798f3909bc95fb28c3a0f704fb89a490e10b015f --- templates/Settings.php.erb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/templates/Settings.php.erb b/templates/Settings.php.erb index 94a7125..768f4b4 100644 --- a/templates/Settings.php.erb +++ b/templates/Settings.php.erb @@ -155,6 +155,10 @@ $wgGroupPermissions['suppress']['suppressrevision'] = true; # Allow members of the suppress group to see the supression log $wgGroupPermissions['suppress']['suppressionlog'] = true; +# Allow known-good users to be listed in an 'autopatrol' group so their +# edits are automatically marked as 'patrolled' +$wgGroupPermissions['autopatrol']['autopatrol'] = true; + # Useful for debugging purposes, and doesn't expose very sensitive info $wgShowExceptionDetails = true;