Page MenuHomePhabricator

Enable AbuseFilter on Cantonese Wikipedia
Closed, ResolvedPublic


yuewiki would like the AbuseFilter extension installed with default settings
in addition with the settings listed below per consensus:開着special:abusefilter好唔好?

$wgGroupPermissions['*']['abusefilter-log-detail'] = true;
$wgGroupPermissions['*']['abusefilter-log'] = true;

Assign the following changeable groups
'SYSOPS' can add/remove the 'abusefilter' group.

Assign the following permissions to a dedicated group 'abusefilter':

Version: unspecified
Severity: enhancement



Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:31 PM
bzimport set Reference to bz18589.

In addition to the comment 0, the following permissions are also need to be added:

$wgGroupPermissions['*']['abusefilter-view'] = true;
$wgGroupPermissions['sysop']['abusefilter-revert'] = true;

The default settings for abusefilter have the following already set:

$wgGroupPermissions['*']['abusefilter-view'] = true;
$wgGroupPermissions['*']['abusefilter-log'] = true;

$wgGroupPermissions['sysop']['abusefilter-modify'] = true;
$wgGroupPermissions['sysop']['abusefilter-log-detail'] = true;

The rest have been put in place:

$wgGroupPermissions['*']['abusefilter-log-detail'] = true;
$wgGroupPermissions['sysop']['abusefilter-revert'] = true;
$wgGroupPermissions['abusefilter']['abusefilter-modify'] = true;

In addition, the Sysop group has the permission to add and remove the 'abusefilter' group from users.

That should be everything you guys need. Let me know if there are any questions or concerns!

The AbuseFilter extension is still not enabled yet, while the group permissions
have been added from comment #2.

Please add:
'zh_yuewiki' => true,
into the 'wmgUseAbuseFilter' array to enable the extension.


The corrent configuration can only adding the users into the 'abusefilter' group,
but cannot remove then from the group.

Please add the abailty to 'sysops' to make them can be remove users from the
'abusefilter' group, as stated on the comment 2.


Sorry about that, must have missed a step. The above has been corrected and pushed live.

I think we need to use this line to override the default setting to prevent
sysops to modify the Abuse Filter settings (This was conceded as the inactive sysops
for security reason). Also this would be the same configuration to the enwiki.

$wgGroupPermissions['sysop']['abusefilter-modify'] = false;


The above request has been added to the configuration.