Index: trunk/phase3/includes/Article.php |
— | — | @@ -996,7 +996,7 @@ |
997 | 997 | # Only diffs and new page links from RC give rcid params, so if |
998 | 998 | # we are just viewing the page normally with no rcid, try to find it. |
999 | 999 | # This is more convenient for users. |
1000 | | - if( $this->mTitle->exists() && $this->mTitle->userCan('patrol') ) { |
| 1000 | + if( $this->mTitle->exists() && $this->mTitle->userCan('patrol', false) ) { |
1001 | 1001 | if( empty($rcid) ) { |
1002 | 1002 | $firstRev = $this->mTitle->getFirstRevision(); |
1003 | 1003 | $rcid = $firstRev ? $firstRev->isUnpatrolled() : 0; |
— | — | @@ -1008,7 +1008,7 @@ |
1009 | 1009 | } |
1010 | 1010 | # If we have been passed an &rcid= parameter, we want to give the user a |
1011 | 1011 | # chance to mark this new article as patrolled. |
1012 | | - if( !empty($rcid) && $this->mTitle->exists() && $this->mTitle->userCan('patrol') ) { |
| 1012 | + if( !empty($rcid) && $this->mTitle->exists() && $this->mTitle->userCan('patrol', false) ) { |
1013 | 1013 | $wgOut->addHTML( |
1014 | 1014 | "<div class='patrollink'>" . |
1015 | 1015 | wfMsgHtml( 'markaspatrolledlink', |