http://www.mediawiki.org/wiki/Special:Code/pywikipedia/11619
Revision: 11619 Author: legoktm Date: 2013-06-06 19:38:32 +0000 (Thu, 06 Jun 2013) Log Message: ----------- Only add patrol flag if showPatrolled is not None, user can have either patrol or patrolmarks right.
Modified Paths: -------------- branches/rewrite/pywikibot/site.py
Modified: branches/rewrite/pywikibot/site.py =================================================================== --- branches/rewrite/pywikibot/site.py 2013-06-02 17:01:35 UTC (rev 11618) +++ branches/rewrite/pywikibot/site.py 2013-06-06 19:38:32 UTC (rev 11619) @@ -2229,7 +2229,7 @@ 'anon': showAnon, 'redirect': showRedirects, } - if self.has_right('patrol'): + if showPatrolled is not None and (self.has_right('patrol') or self.has_right('patrolmarks')): rcgen.request['rcprop'] += '|patrolled' filters['patrolled'] = showPatrolled rcshow = []
pywikipedia-svn@lists.wikimedia.org