From: Daniel Kinzler Date: Thu, 15 Feb 2007 13:24:49 +0000 (+0000) Subject: enforcing read permission in RC feeds; NOTE: people watching restricted wikis using... X-Git-Tag: 1.31.0-rc.0~54043 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dmes_infos.php?a=commitdiff_plain;h=64b6715453f36a293cb44b43484f0d556b26908a;p=lhc%2Fweb%2Fwiklou.git enforcing read permission in RC feeds; NOTE: people watching restricted wikis using RSS will no longer see diffs! --- 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" );