From 045f39f354695501453b002504afce78aaa89d51 Mon Sep 17 00:00:00 2001 From: umherirrender Date: Fri, 20 Sep 2013 17:33:07 +0200 Subject: [PATCH] Pass user to Title::userCan in ApiFeedContributions Change-Id: I15b95f4e4bf4a07b55b98baa360078411c0f42cc --- includes/api/ApiFeedContributions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ); -- 2.20.1