diff --git a/extension.json b/extension.json index c6f0dc6dce..caaec330ff 100644 --- a/extension.json +++ b/extension.json @@ -24,7 +24,7 @@ "license-name": "MIT", "type": "editor", "requires": { - "MediaWiki": ">= 1.39.0" + "MediaWiki": ">= 1.40.0" }, "callback": "MediaWiki\\Extension\\VisualEditor\\Hooks::onRegistration", "ServiceWiringFiles": [ diff --git a/includes/ApiVisualEditor.php b/includes/ApiVisualEditor.php index 188f4eaf9b..8fc3c47c20 100644 --- a/includes/ApiVisualEditor.php +++ b/includes/ApiVisualEditor.php @@ -577,9 +577,7 @@ class ApiVisualEditor extends ApiBase { $block = null; $blockinfo = null; // Blocked user notice - if ( $user->isBlockedGlobally() ) { - $block = $user->getGlobalBlock(); - } elseif ( $permissionManager->isBlockedFrom( $user, $title, true ) ) { + if ( $permissionManager->isBlockedFrom( $user, $title, true ) ) { $block = $user->getBlock(); } if ( $block ) {