Pass the User object to Title::userCan()
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sat, 17 Dec 2011 18:52:52 +0000 (18:52 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sat, 17 Dec 2011 18:52:52 +0000 (18:52 +0000)
includes/specials/SpecialExport.php

index 814d204..49f6839 100644 (file)
@@ -326,7 +326,7 @@ class SpecialExport extends SpecialPage {
                        if( is_null( $title ) ) {
                                continue; #TODO: perhaps output an <error> tag or something.
                        }
-                       if( !$title->userCan( 'read' ) ) {
+                       if( !$title->userCan( 'read', $this->getUser() ) ) {
                                continue; #TODO: perhaps output an <error> tag or something.
                        }