Huji added a comment.
In T231263#5449401 <https://phabricator.wikimedia.org/T231263#5449401>, @JJMC89 wrote: > rPWBC5811a544278e: Check a user's rights rather than group memberships <https://phabricator.wikimedia.org/rPWBC5811a544278e644e2a330052f0fabc990010253f> did not resolve the issue. > Now, with or without `sysopnames` in `user-config.py` nothing happens when `Page.delete()` (or `Site.deletepage()`) is used. > > Pywikibot: [https] r-pywikibot-core.git (5811a54, g1, 2019/08/27, 08:48:32, OUTDATED) That is because the decorator `must_be()` should return a function, but we accidentally made it return True! In all fairness, this was the very first time I had dealt with a decorator in Python. The patch above will fix it (I verified on test.wikipedia.org) TASK DETAIL https://phabricator.wikimedia.org/T231263 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Huji Cc: zhuyifei1999, Dalba, Xqt, Huji, Aklapper, pywikibot-bugs-list, JJMC89, Hook696, Daryl-TTMG, RomaAmorRoma, 0010318400, E.S.A-Sheild, joker88john, Viztor, DannyS712, CucyNoiD, NebulousIris, Wenyi, Gaboe420, Versusxo, Majesticalreaper22, Giuliamocci, Adrian1985, Cpaulf30, Af420, Darkminds3113, Bsandipan, Lordiis, Adik2382, Th3d3v1ls, Ramalepe, Liugev6, Tbscho, MayS, WSH1906, Lewizho99, Mdupont, Maathavan, Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista, Rxy
_______________________________________________ pywikibot-bugs mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
