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 @@
205
205
206
206
public static function getImportToken( $pageid, $title ) {
207
207
global $wgUser;
208
- if ( !$wgUser->isAllowed( 'import' ) ) {
208
+ if ( !$wgUser->isAllowedAny( 'import', 'importupload' ) ) {
209
209
return false;
210
210
}
211
211
Past revisions this follows-up on
Revision
Commit summary
Author
Date
r84825
* (
bug 28263
) cannot import xml with the api, when have not "import" user rig...
reedy
01:14, 27 March 2011
Status & tagging log
14:45, 14 May 2011
Catrope
(
talk
|
contribs
)
changed the
status
of r85138
[
removed:
new
added:
ok]