Allow User::isAllowed() to take varargs. "is allowed X or Y" is by far the more...
[lhc/web/wiklou.git] / includes / specials / SpecialImport.php
index 73416a8..b1292d2 100644 (file)
@@ -144,7 +144,7 @@ class SpecialImport extends SpecialPage {
 
        private function showForm() {
                global $wgUser, $wgOut, $wgImportSources, $wgExportMaxLinkDepth;
-               if( !$wgUser->isAllowed( 'import' ) && !$wgUser->isAllowed( 'importupload' ) )
+               if( !$wgUser->isAllowed( 'import', 'importupload' ) )
                        return $wgOut->permissionRequired( 'import' );
 
                $action = $this->getTitle()->getLocalUrl( array( 'action' => 'submit' ) );