mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-28 00:00:49 +00:00
Avoid master queries on GET requests for blocking
Bug: T92357 Change-Id: I031d71a87d49e0a33eed7c0c520097770f14937e
This commit is contained in:
parent
3028f4f2d6
commit
7fd0747ffd
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue