Index: trunk/phase3/includes/Article.php |
— | — | @@ -2183,7 +2183,8 @@ |
2184 | 2184 | # Update recentchanges |
2185 | 2185 | if ( !( $flags & EDIT_SUPPRESS_RC ) ) { |
2186 | 2186 | # Mark as patrolled if the user can do so |
2187 | | - $patrolled = $wgUseRCPatrol && $this->mTitle->userCan( 'autopatrol' ); |
| 2187 | + $patrolled = $wgUseRCPatrol && !count( |
| 2188 | + $this->mTitle->getUserPermissionsErrors( 'autopatrol', $user ) ); |
2188 | 2189 | # Add RC row to the DB |
2189 | 2190 | $rc = RecentChange::notifyEdit( $now, $this->mTitle, $isminor, $user, $summary, |
2190 | 2191 | $this->mLatest, $this->getTimestamp(), $bot, '', $oldsize, $newsize, |
— | — | @@ -2271,7 +2272,8 @@ |
2272 | 2273 | global $wgUseRCPatrol, $wgUseNPPatrol; |
2273 | 2274 | |
2274 | 2275 | # Mark as patrolled if the user can do so |
2275 | | - $patrolled = ( $wgUseRCPatrol || $wgUseNPPatrol ) && $this->mTitle->userCan( 'autopatrol' ); |
| 2276 | + $patrolled = ( $wgUseRCPatrol || $wgUseNPPatrol ) && !count( |
| 2277 | + $this->mTitle->getUserPermissionsErrors( 'autopatrol', $user ) ); |
2276 | 2278 | # Add RC row to the DB |
2277 | 2279 | $rc = RecentChange::notifyNew( $now, $this->mTitle, $isminor, $user, $summary, $bot, |
2278 | 2280 | '', strlen( $text ), $revisionId, $patrolled ); |