jenkins-bot merged this change.
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.