r106518 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r106517‎ | r106518 | r106519 >
Date:18:52, 17 December 2011
Author:ialex
Status:ok
Tags:
Comment:
Pass the User object to Title::userCan()
Modified paths:
  • /trunk/phase3/includes/specials/SpecialExport.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/specials/SpecialExport.php
@@ -326,7 +326,7 @@
327327 if( is_null( $title ) ) {
328328 continue; #TODO: perhaps output an <error> tag or something.
329329 }
330 - if( !$title->userCan( 'read' ) ) {
 330+ if( !$title->userCan( 'read', $this->getUser() ) ) {
331331 continue; #TODO: perhaps output an <error> tag or something.
332332 }
333333

Status & tagging log