Page MenuHomePhabricator

AbuseFilter: Expose global groups in global_user_groups variable (via CentralAuth)
Closed, ResolvedPublic

Description

Author: Wiki.Melancholie

Description:
There is no "[Gg]lobal_bot" user group/right for the AbuseFilter, yet.

("bot" in user_groups) e.g. only works for accounts that have a local bot flag.

Note that not all global bots have "bot" in their name but that normal accounts can have "bot" in their name; thus plain user name sniffing is not suitable in cases where you want to find out if an account is a (global) bot.

  • you can test an account for being a [local only] bot or not with ("bot" in user_groups)
  • you can _not_ test an account for being a (global, but not locally flagged) bot or not with ("Global_bot" in user_groups) e.g.

Similar request: bug 20272


Version: unspecified
Severity: enhancement

Details

Reference
bz20850
TitleReferenceAuthorSource BranchDest Branch
Remove the Gerrit applicationrepos/phabricator/extensions!5aklapperaklapper-wmf/stable-patch-37894wmf/stable
Customize query in GitLab

Event Timeline

bzimport raised the priority of this task from to Low.Nov 21 2014, 10:52 PM
bzimport set Reference to bz20850.

Wiki.Melancholie wrote:

Note that this, of course, would be intended to whitelist/allow global bots in specific cases, not to block them ;-) ;-)

aokomoriuta wrote:

This is not for only global bot but for all global group (e.g. global sysop, steward, etc) so I changed the title(summary).

I guess it's a little hard to get what global groups the user has because global groups isn't managed by the MediaWiki core but by a MediaWiki extension ([[mw:Extension:CentralAuth]]?).
But we (I mean we are jawiki's users at least) are very anxious for this.

vigorous_action wrote:

The thing corresponding to GlobalGroupPermissions and globalgroupmembership is hoped for.

If we can write,

("bot" in user_groups or "globalbot" in global_user_group)

it would be helpful.

Gerrit change 38895, relies on Gerrit change 38894 in AbuseFilter