Pass user to Title::userCan in ApiFeedContributions
authorumherirrender <umherirrender_de.wp@web.de>
Fri, 20 Sep 2013 15:33:07 +0000 (17:33 +0200)
committerumherirrender <umherirrender_de.wp@web.de>
Fri, 20 Sep 2013 15:33:07 +0000 (17:33 +0200)
Change-Id: I15b95f4e4bf4a07b55b98baa360078411c0f42cc

includes/api/ApiFeedContributions.php

index abd657c..0569109 100644 (file)
@@ -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 );