Page MenuHomePhabricator

Support Portuguese wiki flag 'eliminator'
Closed, ResolvedPublic

Description

On Portuguese wikis, users/bots may have the eliminator flag and not sysop flag, to perform deletions.

Page.delete requires a sysop account.

Workaround is to use:

site.deletepage(page, u'reason', as_group='user')


Version: core-(2.0)
Severity: normal
See Also:
T57296: Wikia Helper and Staff rights

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 3:50 AM
bzimport set Reference to bz73545.
bzimport added a subscriber: Unknown Object (????).

A possible workaround is to add put the eliminator username in user-config's sysopnames

Change 209503 had a related patch set uploaded (by John Vandenberg):
Replace @must_be with @need_right

https://gerrit.wikimedia.org/r/209503

Why not use action=query&meta=userinfo&uiprop=rights to find out if the current bot user has the delete user right?

EDIT: already covered in T71283

Can we deprecate the separation of normal user and sysop accounts?

Can we deprecate the separation of normal user and sysop accounts?

I guess we should but this will be a big change. We should have a tracking task to coordinate the needed several steps.

Xqt triaged this task as Medium priority.Apr 15 2018, 9:36 AM

Change 531589 had a related patch set uploaded (by Huji; owner: Huji):
[pywikibot/core@master] Check a user's rights before checking its group memberships

https://gerrit.wikimedia.org/r/531589

Change 531589 merged by jenkins-bot:
[pywikibot/core@master] Check a user's rights before checking its group memberships

https://gerrit.wikimedia.org/r/531589

Huji claimed this task.
Huji subscribed.

I am assuming r531589 fixed this. Reopen if otherwise.

Change 209503 abandoned by Xqt:
[WIP] Replace @must_be with @need_right

Reason:
In favour of https://gerrit.wikimedia.org/r/#/c/pywikibot/core/ /565624/ and due to very outdated base

https://gerrit.wikimedia.org/r/209503