Avoid master queries on GET requests for blocking

Bug: T92357
Change-Id: I031d71a87d49e0a33eed7c0c520097770f14937e
This commit is contained in:
Aaron Schulz 2016-03-24 13:24:00 -07:00
parent 3028f4f2d6
commit 7fd0747ffd

View file

@ -139,7 +139,7 @@ class VisualEditorHooks {
$ret = $req->getVal( 'action' ) !== 'edit' ||
!$veConfig->get( 'VisualEditorUseSingleEditTab' ) ||
self::getUserEditor( $user, $req ) === 'wikitext' ||
!$title->userCan( 'edit' ) ||
!$title->quickUserCan( 'edit' ) ||
!$title->inNamespaces( array_keys( array_filter( $availableNamespaces ) ) ) ||
$title->getContentModel() !== CONTENT_MODEL_WIKITEXT ||
// Known parameters that VE does not handle