diff --git a/ApiVisualEditor.php b/ApiVisualEditor.php index 086242ead0..fd11cf3cdd 100644 --- a/ApiVisualEditor.php +++ b/ApiVisualEditor.php @@ -28,7 +28,9 @@ class ApiVisualEditor extends ApiBase { } else { $result = array( 'result' => 'success', 'parsed' => '' ); } - } elseif ( $params['paction'] === 'save' ) { + } elseif ( $params['paction'] === 'save' && $wgUser->isBlocked() ) { + $result = array( 'result' => 'error' ); + } elseif ( $params['paction'] === 'save' /* means user is not blocked */ ) { // API Posts HTML to Parsoid Service, receives Wikitext, // API Saves Wikitext to page. $wikitext = Http::post( $parsoid . $page->getPrefixedDBkey(),