From: umherirrender Date: Fri, 20 Sep 2013 15:33:07 +0000 (+0200) Subject: Pass user to Title::userCan in ApiFeedContributions X-Git-Tag: 1.31.0-rc.0~18719 X-Git-Url: http://git.cyclocoop.org//%22javascript:ModifierStyle%28%27%22.%24id.%22%27%29/%22?a=commitdiff_plain;h=045f39f354695501453b002504afce78aaa89d51;p=lhc%2Fweb%2Fwiklou.git Pass user to Title::userCan in ApiFeedContributions Change-Id: I15b95f4e4bf4a07b55b98baa360078411c0f42cc --- diff --git a/includes/api/ApiFeedContributions.php b/includes/api/ApiFeedContributions.php index abd657cdd8..05691093f4 100644 --- a/includes/api/ApiFeedContributions.php +++ b/includes/api/ApiFeedContributions.php @@ -93,7 +93,7 @@ class ApiFeedContributions extends ApiBase { protected function feedItem( $row ) { $title = Title::makeTitle( intval( $row->page_namespace ), $row->page_title ); - if ( $title && $title->userCan( 'read' ) ) { + if ( $title && $title->userCan( 'read', $this->getUser() ) ) { $date = $row->rev_timestamp; $comments = $title->getTalkPage()->getFullURL(); $revision = Revision::newFromRow( $row );