[MediaWiki-commits] [Gerrit] Pass user to Title::userCan in ApiFeedContributions - change (mediawiki/core)
jenkins-bot has submitted this change and it was merged. Change subject: Pass user to Title::userCan in ApiFeedContributions .. Pass user to Title::userCan in ApiFeedContributions Change-Id: I15b95f4e4bf4a07b55b98baa360078411c0f42cc --- M includes/api/ApiFeedContributions.php 1 file changed, 1 insertion(+), 1 deletion(-) Approvals: Anomie: Looks good to me, approved jenkins-bot: Verified diff --git a/includes/api/ApiFeedContributions.php b/includes/api/ApiFeedContributions.php index abd657c..0569109 100644 --- a/includes/api/ApiFeedContributions.php +++ b/includes/api/ApiFeedContributions.php @@ -93,7 +93,7 @@ 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 ); -- To view, visit https://gerrit.wikimedia.org/r/85220 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I15b95f4e4bf4a07b55b98baa360078411c0f42cc Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/core Gerrit-Branch: master Gerrit-Owner: Umherirrender Gerrit-Reviewer: Anomie Gerrit-Reviewer: jenkins-bot ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] Pass user to Title::userCan in ApiFeedContributions - change (mediawiki/core)
Umherirrender has uploaded a new change for review. https://gerrit.wikimedia.org/r/85220 Change subject: Pass user to Title::userCan in ApiFeedContributions .. Pass user to Title::userCan in ApiFeedContributions Change-Id: I15b95f4e4bf4a07b55b98baa360078411c0f42cc --- M includes/api/ApiFeedContributions.php 1 file changed, 1 insertion(+), 1 deletion(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core refs/changes/20/85220/1 diff --git a/includes/api/ApiFeedContributions.php b/includes/api/ApiFeedContributions.php index abd657c..0569109 100644 --- a/includes/api/ApiFeedContributions.php +++ b/includes/api/ApiFeedContributions.php @@ -93,7 +93,7 @@ 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 ); -- To view, visit https://gerrit.wikimedia.org/r/85220 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I15b95f4e4bf4a07b55b98baa360078411c0f42cc Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/core Gerrit-Branch: master Gerrit-Owner: Umherirrender ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits