Last modified: 2011-03-27 01:15:15 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T30263, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 28263 - cannot import xml with the api, when have not "import" user right, but "importupload"
cannot import xml with the api, when have not "import" user right, but "impor...
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
1.18.x
All All
: Normal minor (vote)
: ---
Assigned To: Roan Kattouw
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-03-26 20:49 UTC by db [inactive,noenotif]
Modified: 2011-03-27 01:15 UTC (History)
4 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description db [inactive,noenotif] 2011-03-26 20:49:14 UTC
User with the user right "importupload" but without "import" cannot import xml with the api.

prop=info gives:
Action 'import' is not allowed for the current user

importupload gives:
code=cantimport, info=You don't have permission to import pages

Special:Import allows import of xml without "import".

Thanks.
Comment 1 Sam Reed (reedy) 2011-03-27 01:15:15 UTC
		if( !$wgUser->isAllowedAny( 'import', 'importupload' ) ) {
			return $wgOut->permissionRequired( 'import' );
		}

import	allows user to import one page per time from another wiki ("transwiki").	1.5+

importupload	allows user to import several pages per time from XML files. This right was called 'importraw' in and before version 1.5.	1.5+



r84825

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links