From: Aaron Schulz Date: Thu, 1 Jan 2009 23:29:30 +0000 (+0000) Subject: User more thorough mTitle->userCan checks for autopatrolling X-Git-Tag: 1.31.0-rc.0~43632 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dcompta/operations/modifier.php?a=commitdiff_plain;h=91febdc10b6f968ea2b15220d95468c54f3d8a7f;p=lhc%2Fweb%2Fwiklou.git User more thorough mTitle->userCan checks for autopatrolling --- diff --git a/includes/Article.php b/includes/Article.php index b0bf080da4..456e3d98b1 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -1562,7 +1562,7 @@ class Article { # Update recentchanges if( !( $flags & EDIT_SUPPRESS_RC ) ) { # Mark as patrolled if the user can do so - $patrolled = $wgUseRCPatrol && $user->isAllowed('autopatrol'); + $patrolled = $wgUseRCPatrol && $this->mTitle->userCan('autopatrol'); # Add RC row to the DB $rc = RecentChange::notifyEdit( $now, $this->mTitle, $isminor, $user, $summary, $this->mLatest, $this->getTimestamp(), $bot, '', $oldsize, $newsize, @@ -1644,7 +1644,7 @@ class Article { if( !( $flags & EDIT_SUPPRESS_RC ) ) { global $wgUseRCPatrol, $wgUseNPPatrol; # Mark as patrolled if the user can do so - $patrolled = ($wgUseRCPatrol || $wgUseNPPatrol) && $user->isAllowed('autopatrol'); + $patrolled = ($wgUseRCPatrol || $wgUseNPPatrol) && $this->mTitle->userCan('autopatrol'); # Add RC row to the DB $rc = RecentChange::notifyNew( $now, $this->mTitle, $isminor, $user, $summary, $bot, '', strlen($text), $revisionId, $patrolled );