Last modified: 2011-06-24 21:26:11 UTC
The community on ca.wiki has approved enabling AbuseFilter: https://secure.wikimedia.org/wikipedia/ca/wiki/Viquip%C3%A8dia:Presa_de_decisions/2011/Filtre_d%27edicions The configuration discussed is: * Create abusefilter group. Sysops may add or remove users from this group. Only abusefilter group will edit filters. * Enable action block with a duration of 2 hours. * Enable autoconfirmed group to view log detail, and only user group to view filters. So, if I have not missed anything: $wgGroupPermissions['sysop']['abusefilter-modify'] = false; $wgGroupPermissions['abusefilter']['abusefilter-modify'] = true; $wgGroupPermissions['sysop']['abusefilter-view-private'] = true; $wgGroupPermissions['*']['abusefilter-view'] = false; $wgGroupPermissions['user']['abusefilter-view'] = true; $wgGroupPermissions['autoconfirmed']['abusefilter-log-detail'] = true; $wgAbuseFilterAvailableActions[] = 'block'; $wgAbuseFilterBlockDuration = '2 hours';
Done. Index: abusefilter.php =================================================================== --- abusefilter.php (revision 1914) +++ abusefilter.php (working copy) @@ -31,6 +31,15 @@ $wgGroupPermissions['abusefilter']['abusefilter-modify-restricted'] = true; $wgGroupPermissions['sysop']['abusefilter-modify-restricted'] = true; $wgGroupPermissions['autoconfirmed']['abusefilter-view'] = true; +} elseif ($wgDBname == 'cawiki') { + $wgGroupPermissions['sysop']['abusefilter-modify'] = false; + $wgGroupPermissions['abusefilter']['abusefilter-modify'] = true; + $wgGroupPermissions['sysop']['abusefilter-view-private'] = true; + $wgGroupPermissions['*']['abusefilter-view'] = false; + $wgGroupPermissions['user']['abusefilter-view'] = true; + $wgGroupPermissions['autoconfirmed']['abusefilter-log-detail'] = true; + $wgAbuseFilterAvailableActions[] = 'block'; + $wgAbuseFilterBlockDuration = '2 hours'; } elseif ($wgDBname == 'dewiki') { // Removed custom AbuseFilter settings per bug 18223 --Andrew 2009-03-29 // Where on earth did this come from? --Andrew Index: InitialiseSettings.php =================================================================== --- InitialiseSettings.php (revision 1914) +++ InitialiseSettings.php (working copy) @@ -6422,7 +6422,7 @@ 'bureaucrat' => array( 'patroller', 'autopatrolled', 'rollbacker' ) ), '+cawiki' => array( - 'sysop' => array( 'rollbacker', 'autopatrolled', ), + 'sysop' => array( 'rollbacker', 'autopatrolled', 'abusefilter', ), ), '+cswiki' => array( 'bureaucrat' => array( 'autopatrolled' ), @@ -6741,7 +6741,7 @@ 'bureaucrat' => array( 'patroller', 'autopatrolled', 'rollbacker' ) ), '+cawiki' => array( - 'sysop' => array( 'rollbacker', 'autopatrolled', ), + 'sysop' => array( 'rollbacker', 'autopatrolled', 'abusefilter', ), ), '+commonswiki' => array( 'bureaucrat' => array( 'bot', 'ipblock-exempt', 'OTRS-member' ), @@ -8627,6 +8627,7 @@ 'barwiki' => true, // Roan 2009-12-24 Bug 20515 'bawiki' => true, 'be_x_oldwiki' => true, //http://bugzilla.wikimedia.org/show_bug.cgi?id=28461 + 'cawiki' => true, 'commonswiki' => true, // Andrew 2009-03-24 bug 18094 'dewiki' => true, // Andrew 2009-02-24 Requested by DaB, with custom settings. 'dsbwiki' => true,