From: Alexandre Emsenhuber Date: Sat, 17 Dec 2011 18:52:52 +0000 (+0000) Subject: Pass the User object to Title::userCan() X-Git-Tag: 1.31.0-rc.0~25919 X-Git-Url: http://git.cyclocoop.org/data/%24self?a=commitdiff_plain;h=bca521187e7965450844d15eaf5786ccd2d42d10;p=lhc%2Fweb%2Fwiklou.git Pass the User object to Title::userCan() --- diff --git a/includes/specials/SpecialExport.php b/includes/specials/SpecialExport.php index 814d2043bf..49f6839f2e 100644 --- a/includes/specials/SpecialExport.php +++ b/includes/specials/SpecialExport.php @@ -326,7 +326,7 @@ class SpecialExport extends SpecialPage { if( is_null( $title ) ) { continue; #TODO: perhaps output an tag or something. } - if( !$title->userCan( 'read' ) ) { + if( !$title->userCan( 'read', $this->getUser() ) ) { continue; #TODO: perhaps output an tag or something. }