Check if user is blocked during upload process
authorMatthias Mullie <git@mullie.eu>
Fri, 29 Apr 2016 14:21:13 +0000 (16:21 +0200)
committerBartosz Dziewoński <matma.rex@gmail.com>
Tue, 3 May 2016 13:23:44 +0000 (13:23 +0000)
commited6a2d5df1b60c15f6b541838aabf946ecbaa1e0
treeeb98c8724b0519a84ac70aa67eebb05fc1a26d53
parent773cdb94714db02fbe24b97bc4816d071476b494
Check if user is blocked during upload process

Further down, this was already somewhat being checked.
On L112, `verifyTitlePermissions` is called, which will fail
if the user is blocked. However:

* This was not being checked during stashed uploads
* Block just "happens" to be part of that check: the intent is
  actually to verify the file title. The error is treated as
  recoverable (the title can be changed), but it isn't (the
  user can't unblock himself in this process)

Bug: T111228
Change-Id: I9cbf250a0b92c3daa3a0843f2257cc049abd3923
includes/api/ApiUpload.php
languages/i18n/en.json
languages/i18n/qqq.json
resources/Resources.php
resources/src/mediawiki/api.js