Index: trunk/phase3/includes/SpecialRecentchanges.php |
— | — | @@ -622,7 +622,13 @@ |
623 | 623 | $skin = $wgUser->getSkin(); |
624 | 624 | $completeText = '<p>' . $skin->formatComment( $comment ) . "</p>\n"; |
625 | 625 | |
626 | | - if( $title->getNamespace() >= 0 && $title->userCan( 'read' ) ) { |
| 626 | + //NOTE: Check permissions for anonymous users, not current user. |
| 627 | + // No "privileged" version should end up in the cache. |
| 628 | + // Most feed readers will not log in anway. |
| 629 | + $anon = new User(); |
| 630 | + $accErrors = $title->getUserPermissionsErrors( 'read', $anon, true ); |
| 631 | + |
| 632 | + if( $title->getNamespace() >= 0 && !$accErrors ) { |
627 | 633 | if( $oldid ) { |
628 | 634 | wfProfileIn( "$fname-dodiff" ); |
629 | 635 | |