jenkins-bot merged this change.

View Change

Approvals: Zhuyifei1999: Looks good to me, approved jenkins-bot: Verified
Fix the must_be decorator function

Regression introduced in Ie729511867340f38de24e28e55bef1d49c1d6b99

Bug: T231263
Change-Id: Ia6eae6bd31c305360a07f4656fc4fe96be89f4a9
---
M pywikibot/site.py
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pywikibot/site.py b/pywikibot/site.py
index a3f3e06..f63c034 100644
--- a/pywikibot/site.py
+++ b/pywikibot/site.py
@@ -1315,7 +1315,7 @@
.format(self.sitename))
if right is not None:
if right in self.userinfo['rights']:
- return
+ return fn(self, *args, **kwargs)
if grp == 'user':
self.login(False)
elif grp == 'sysop':

To view, visit change 534922. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: Ia6eae6bd31c305360a07f4656fc4fe96be89f4a9
Gerrit-Change-Number: 534922
Gerrit-PatchSet: 2
Gerrit-Owner: Huji <huji.huji@gmail.com>
Gerrit-Reviewer: Dalba <dalba.wiki@gmail.com>
Gerrit-Reviewer: JJMC89 <JJMC89.Wikimedia@gmail.com>
Gerrit-Reviewer: Xqt <info@gno.de>
Gerrit-Reviewer: Zhuyifei1999 <zhuyifei1999@gmail.com>
Gerrit-Reviewer: jenkins-bot (75)