From 64b6715453f36a293cb44b43484f0d556b26908a Mon Sep 17 00:00:00 2001 From: Daniel Kinzler Date: Thu, 15 Feb 2007 13:24:49 +0000 Subject: [PATCH] enforcing read permission in RC feeds; NOTE: people watching restricted wikis using RSS will no longer see diffs! --- includes/SpecialRecentchanges.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/SpecialRecentchanges.php b/includes/SpecialRecentchanges.php index 98445754a9..13d5ebf617 100644 --- a/includes/SpecialRecentchanges.php +++ b/includes/SpecialRecentchanges.php @@ -624,7 +624,7 @@ function rcFormatDiffRow( $title, $oldid, $newid, $timestamp, $comment ) { $skin = $wgUser->getSkin(); $completeText = '

' . $skin->formatComment( $comment ) . "

\n"; - if( $title->getNamespace() >= 0 ) { + if( $title->getNamespace() >= 0 && $title->userCan( 'read' ) ) { if( $oldid ) { wfProfileIn( "$fname-dodiff" ); -- 2.20.1