Last modified: 2011-06-24 21:26:11 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T31527, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 29527 - Enable AbuseFilter on Catalan Wikipedia
Enable AbuseFilter on Catalan Wikipedia
Status: RESOLVED FIXED
Product: Wikimedia
Classification: Unclassified
Site requests (Other open bugs)
unspecified
All All
: Unprioritized enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
: shell
Depends on: 28161
Blocks:
  Show dependency treegraph
 
Reported: 2011-06-22 09:58 UTC by vriullop
Modified: 2011-06-24 21:26 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description vriullop 2011-06-22 09:58:06 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';
Comment 1 JeLuF 2011-06-24 21:26:01 UTC
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,

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links