enforcing read permission in RC feeds; NOTE: people watching restricted wikis using...
authorDaniel Kinzler <daniel@users.mediawiki.org>
Thu, 15 Feb 2007 13:24:49 +0000 (13:24 +0000)
committerDaniel Kinzler <daniel@users.mediawiki.org>
Thu, 15 Feb 2007 13:24:49 +0000 (13:24 +0000)
includes/SpecialRecentchanges.php

index 9844575..13d5ebf 100644 (file)
@@ -624,7 +624,7 @@ function rcFormatDiffRow( $title, $oldid, $newid, $timestamp, $comment ) {
        $skin = $wgUser->getSkin();
        $completeText = '<p>' . $skin->formatComment( $comment ) . "</p>\n";
 
-       if( $title->getNamespace() >= 0 ) {
+       if( $title->getNamespace() >= 0 && $title->userCan( 'read' ) ) {
                if( $oldid ) {
                        wfProfileIn( "$fname-dodiff" );