Background
APIUpload and SpecialUpload check for global blocks separately from other blocks. If a global block is found, it blocks upload.
This is an example of MediaWiki core being aware of an extension - GlobalBlocking.
After T257701: Add global blocks into CompositeBlocks rather than treating them separately and T317324: GlobalBlock::appliesToRight should return true for 'upload' this will no longer be necessary, and these checks can be removed.
Acceptance criteria
- APIUpload and SpecialUpload no longer check for global blocks separately, but 'upload' is still blocked by a global block
Testing steps
For local testing the following config are needed:
- $wgEnableUploads = true;
- $wgGroupPermissions['*']['upload'] = true;







