Page MenuHomePhabricator

cannot import xml with the api, when have not "import" user right, but "importupload"
Closed, ResolvedPublic

Description

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.


Version: 1.18.x
Severity: minor

Details

Reference
bz28263

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 11:34 PM
bzimport set Reference to bz28263.
		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