From 520dbe677af4c521c3a734ae9604a938cef17704 Mon Sep 17 00:00:00 2001 From: Thalia Date: Wed, 20 Mar 2019 22:11:33 +0000 Subject: [PATCH] Check whether a user is blocked from upload in ApiUpload Partially blocked users are not blocked from uploading, so check explicitly whether a user is blocked from uploading, rather than simply whether they have a block. Bug: T217255 Change-Id: I21089a90202941ec3bc5bdbf9c0d2e7cab00b365 --- includes/api/ApiUpload.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/api/ApiUpload.php b/includes/api/ApiUpload.php index 2c5b583f3b..12ecd7411c 100644 --- a/includes/api/ApiUpload.php +++ b/includes/api/ApiUpload.php @@ -542,7 +542,7 @@ class ApiUpload extends ApiBase { } // Check blocks - if ( $user->isBlocked() ) { + if ( $user->isBlockedFromUpload() ) { $this->dieBlocked( $user->getBlock() ); } -- 2.20.1