From bca521187e7965450844d15eaf5786ccd2d42d10 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Sat, 17 Dec 2011 18:52:52 +0000 Subject: [PATCH] Pass the User object to Title::userCan() --- includes/specials/SpecialExport.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. } -- 2.20.1