Index: trunk/phase3/includes/specials/SpecialImport.php |
— | — | @@ -128,6 +128,11 @@ |
129 | 129 | |
130 | 130 | private function showForm() { |
131 | 131 | global $wgUser, $wgOut, $wgRequest, $wgTitle, $wgImportSources; |
| 132 | + # FIXME: Quick hack to disable import for non privileged users /Raymond |
| 133 | + # Regression from 43963 |
| 134 | + if( !$wgUser->isAllowed( 'import' ) && !$wgUser->isAllowed( 'importupload' ) ) |
| 135 | + return $wgOut->permissionRequired( 'import' ); |
| 136 | + |
132 | 137 | $action = $wgTitle->getLocalUrl( 'action=submit' ); |
133 | 138 | |
134 | 139 | if( $wgUser->isAllowed( 'importupload' ) ) { |
— | — | @@ -173,8 +178,8 @@ |
174 | 179 | $wgOut->addWikiMsg( 'importnosources' ); |
175 | 180 | } |
176 | 181 | } |
177 | | - |
178 | | - if( !empty( $wgImportSources ) ) { |
| 182 | + |
| 183 | + if( $wgUser->isAllowed( 'import' ) && !empty( $wgImportSources ) ) { |
179 | 184 | $wgOut->addHTML( |
180 | 185 | Xml::openElement( 'fieldset' ) . |
181 | 186 | Xml::element( 'legend', null, wfMsg( 'importinterwiki' ) ) . |