r85138 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r85137‎ | r85138 | r85139 >
Date:17:29, 1 April 2011
Author:reedy
Status:ok
Tags:
Comment:
Followup r84825

Allow obtaining of an import token if users have the importupload right
Modified paths:
  • /trunk/phase3/includes/api/ApiQueryInfo.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/api/ApiQueryInfo.php
@@ -204,7 +204,7 @@
205205
206206 public static function getImportToken( $pageid, $title ) {
207207 global $wgUser;
208 - if ( !$wgUser->isAllowed( 'import' ) ) {
 208+ if ( !$wgUser->isAllowedAny( 'import', 'importupload' ) ) {
209209 return false;
210210 }
211211

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r84825* (bug 28263) cannot import xml with the api, when have not "import" user rig...reedy01:14, 27 March 2011

Status & tagging log