Page MenuHomePhabricator

Can't switch to admin account to delete while using bot account
Closed, ResolvedPublic

Description

Suppose in my user-conf.py has

usernames[...][...] = mybot
sysopnames[...][...] = myaccount

In the past, I couldnormally wrote pages as a bot, and when I wanted to delete a page, I just called page.delete(). Then, my bot and my account will be switched automatically.

[[gerrit:101613]] breaks this functionality. It uses self.site.logged_in(sysop=True) which always return false if the account which logged in at first is a bot. Note that self.site.logged_in also appears in redirect.py which now is not functional too (in the same topic). In my opinion, self.site.logged_in should never be used in any place because it does not consider other accounts in user-conf.py.


Version: core-(2.0)
Severity: normal

Details

Reference
bz60278

Event Timeline

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