Fix for r85005: the getUserPermissionsErrors() calls were each returning a badaccess...
authorHappy-melon <happy-melon@users.mediawiki.org>
Thu, 31 Mar 2011 23:09:02 +0000 (23:09 +0000)
committerHappy-melon <happy-melon@users.mediawiki.org>
Thu, 31 Mar 2011 23:09:02 +0000 (23:09 +0000)
commit678cde7c9121617ebe9d526e5921ad89a9e54884
tree7199776fa3008d464ea9badaaba9fffb1c591847
parentc76698c16cd24a342d94df1b6bec1a81412f2e51
Fix for r85005: the getUserPermissionsErrors() calls were each returning a badaccess error when the user didn't have their particular permission, even if they had the other one, exclude these errors since they're already covered by the $user->isAllowedAny() check above.  Also fix processForm() to check isAllowed('import') for transwiki; this wasn't being done which meant users with importupload but not import (an unlikely combination to be fair) could still spoof the form.
includes/specials/SpecialImport.php