MediaWiki r19944 - Code Review

Jump to: navigation, search
Repository:MediaWiki
Revision:r19943‎ | r19944 (on ViewVC)‎ | r19945 >
Date:13:24, 15 February 2007
Author:daniel
Status:old
Tags:
Comment:
enforcing read permission in RC feeds; NOTE: people watching restricted wikis using RSS will no longer see diffs!
Modified paths:

Diff [purge]

Index: trunk/phase3/includes/SpecialRecentchanges.php
===================================================================
--- trunk/phase3/includes/SpecialRecentchanges.php	(revision 19943)
+++ trunk/phase3/includes/SpecialRecentchanges.php	(revision 19944)
@@ -624,7 +624,7 @@
 	$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" );
 
Personal tools
Namespaces
Variants
Views
Actions
Site
Support
Download
Development
Communication
Toolbox